[name]

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

Constructor

[name]( [page:Integer hex], [page:Float density])

The hex parameter is passed to the [page:Color] constructor to set the color property. Hex can be a hexadecimal integer or a CSS-style string.

Properties

[property:String name]

Default is the empty string.

[property:Color color]

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

[property:Float density]

Defines how fast the fog will grow dense.
Default is 0.00025.

Methods

[method:FogExp2 clone]()

Returns a copy of this.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]