self:get_distance_fade_length

Client

Retrieves the length of the fade transition on the directional light


Syntax

local distance = self:get_distance_fade_length()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatdistanceFade transition length in world units

Examples

Get distance fade length of a directional light
local entity = light.directional.create()

core.engine.print("info", "Distance Fade Length:", entity:get_distance_fade_length())

On this page