The color parameter is passed to the THREE.Color | Color constructor to set the color property
Optionaldensity: numberExpects a Float
Fog color.
Defines how fast the fog will grow dense.
ReadonlyisRead-only flag to check if a given object is of type FogExp2.
Optional name of the object
Return FogExp2 data in JSON format.
This class contains the parameters that define exponential squared fog, which gives a clear view near the camera and a faster than exponentially densening fog farther from the camera.
Example
See