self:set_distance_fade_shadow

Client

Sets the distance at which shadow casting begins to fade on the spot light


Syntax

local status = self:set_distance_fade_shadow(
    distance
)

Parameters

TypeNameDescription
floatdistanceShadow fade begin distance in world units

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply distance fade shadow on a spot light
local entity = light.spot.create()

entity:set_distance_fade_shadow(1.0)

On this page