MaterialFog()

Syntax

MaterialFog(#Material, Color, Intensity, StartDistance, EndDistance)
Description
Adds a fog effect on the specified material.

Parameters

#Material The material to use.
Color The color of the fog effect. RGB() can be used to get a valid color value.
Intensity The fog intensity. If set to zero, the fog effect is removed.
StartDistance The distance from (in world units) where the fog should start.
EndDistance The distance from (in world units) where the fog is fully opaque.

Return value

None.

Supported OS

All

<- MaterialFilteringMode() - Material Index - MaterialID() ->