FogExp2

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

Constructor

FogExp2(color : Integer, density : Float)

The color parameter is passed to the Color constructor to set the color property. Color can be a hexadecimal integer or a CSS-style string.

Properties

.name : String

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

.color : Color

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

.density : Float

Defines how fast the fog will grow dense.

Default is 0.00025.

Methods

.clone () : FogExp2

Returns a new FogExp2 instance with the same parameters as this one.

.toJSON () : FogExp2

Return FogExp2 data in JSON format.

Source

For more info on how to obtain the source code of this module see this page.