self:set_distance_fade_length

Client

Sets the length of the fade transition on the directional light


Syntax

local status = self:set_distance_fade_length(
    distance
)

Parameters

TypeNameDescription
floatdistanceFade transition length in world units

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply distance fade length on a directional light
local entity = light.directional.create()

entity:set_distance_fade_length(1.0)

On this page