Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Fog

This class contains the parameters that define linear fog, i.e., that grows linearly denser with the distance.

See the ngx3js scene page for details. See the ngx scene page for a live demo.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

color

color: I3JS.Color

Fog color. Example: If set to black, far away objects will be rendered black.

far

far: number

The maximum distance at which fog stops being calculated and applied. Objects that are more than 'far' units away from the active camera won't be affected by fog. Default is 1000.

default

1000

Readonly isFog

isFog: true

name

name: string

Optional name of the object (doesn't need to be unique). Default is an empty string.

default

''

near

near: number

The minimum distance to start applying fog. Objects that are less than 'near' units from the active camera won't be affected by fog. Default is 1.

default

1

Methods

clone

toJSON

  • toJSON(): any

Generated using TypeDoc