Fog()

Syntax

Fog(Color, Intensity, StartDistance, EndDistance)
Description
Creates a fog at the specified distance of the camera. The fog effect is applied to all cameras. The fog is also applied automatically to the SkyBox() and SkyDome() commands if called before them.

Parameters

Color The fog color. RGB() can be used to get a valid color value.
Intensity The fog intensity. If sets to zero, the fog effect is disable.
StartDistance The distance from the camera (in world units) where the fog should start.
EndDistance The distance from the camera where the fog is fully opaque.

Return value

None.

See Also

SkyDome(), SkyBox()

Supported OS

All

<- FirstWorldCollisionEntity() - Engine3D Index - FreeWater() ->