LightAttenuation()

Syntax

LightAttenuation(#Light, Range, Attenuation)
Description
Changes the light attenuation.

Parameters

#Light The light to use.
Range The light range (in world unit) above which the light won't affect the world anymore.
Attenuation The global attenuation of the light. A value of 0.0 means no global attenuation (it will still attenuate depending of the range). It can be used to adjust the light brightness.

Return value

None.

See Also

SetLightColor()

Supported OS

All

<- IsLight() - Light Index - LightDirection() ->