CanvasMap
Getting Started Tutorials 3D Reference

Fog

Fog is relatively easy to implement. There are two methods Fog and FogExp2. See the THREE.js documenation for additional information. In CanvasMap 3D, there are new settings.

The settings for fog are set into the Scene object. Fog has to have the same color as the scene background so the setting for this is used automatically for the fog.

For the Fog option, set the "Fog" "Type" to "Fog" and then you can set the following additional "Fog" parameters:

For the FogExp2 option, set the "Fog" "Type" to "FogExp2" and then you can set the following additional "FogExp2" parameters: