< Retour

Three.js Fog

Fog()

scene.fog = new THREE.Fog(0x000000, 10, 100); // color, near, far

FogExp2()

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

scene.fog = new THREE.FogExp2( 0x000000, 0.0025 );

Exclure un objet du fog

material.fog = false