Constructor
new FogExp2( color : number | Color, density : number )
Constructs a new fog.
| color |
The fog's color. |
| density |
Defines how fast the fog will grow dense. Default is |
Properties
.density : number
Defines how fast the fog will grow dense.
Default is 0.00025.
.isFogExp2 : boolean (readonly)
This flag can be used for type testing.
Default is true.
.name : string
The name of the fog.
Methods
.clone() : FogExp2
Returns a new fog with copied values from this instance.
- Returns: A clone of this instance.
.toJSON( meta : Object | string ) : Object
Serializes the fog into JSON.
| meta |
An optional value holding meta information about the serialization. |
- Returns: A JSON object representing the serialized fog