The color parameter is passed to the Color constructor to set the color property
Optional
near: numberExpects a Float
Optional
far: numberExpects a Float
Color can be a hexadecimal integer or a CSS-style string.
Fog color.
If set to black, far away objects will be rendered black.
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.
1000
Readonly
isRead-only flag to check if a given object is of type Fog.
This is a constant value
true
Optional name of the object
(doesn't need to be unique).
""
The minimum distance to start applying fog.
Objects that are less than near units from the active camera won't be affected by fog.
1
Return Fog data in JSON format.
This class contains the parameters that define linear fog, i.e., that grows linearly denser with the distance.
Example
See