self:get_shadow_fade_start

Client

Retrieves the shadow fade start of the directional light, as a proportion of the shadow max distance at which shadows begin fading out


Syntax

local fade = self:get_shadow_fade_start()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatfadeCurrent fade start proportion, from 0.0 to 1.0

Examples

Get the shadow fade start of a directional light
local entity = light.directional.create()

core.engine.print("info", "Shadow Fade Start:", entity:get_shadow_fade_start())

On this page