self:set_shadow_fade_start

Client

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


Syntax

local status = self:set_shadow_fade_start(
    fade
)

Parameters

TypeNameDescription
floatfadeFade start proportion to apply, from 0.0 to 1.0

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set shadow fade start on a directional light
local entity = light.directional.create()

entity:set_shadow_fade_start(0.8)

On this page