self:set_distance_fade_begin

Client

Sets the distance at which the directional light begins to fade out


Syntax

local status = self:set_distance_fade_begin(
    distance
)

Parameters

TypeNameDescription
floatdistanceFade begin distance in world units

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_distance_fade_begin(1.0)

On this page