[name]

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

Constructor

[name]( [page:Integer hex], [page:Float near], [page:Float far] )

Properties

.[page:Integer hex]

Fog color in hexadecimal. Example: 0x000000 will render far away objects black.

.[page:Float near]

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.

.[page:Float far]

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.

Source

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