What it does
scene.setFogMode sets FogMode on a scene object. It takes a value. The accepted values are none, exp, exp2 and linear.
Signature
scene.setFogMode("none"|"exp"|"exp2"|"linear")Arguments
"none"|"exp"|"exp2"|"linear"Accepts:
noneexpexp2linear
Example · generated
function start() { scene.setFogMode('exp');}scene.setFogMode is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.