self:set_shadow_max_distance

Client

Sets the maximum distance at which the directional light renders shadows


Syntax

local status = self:set_shadow_max_distance(
    distance
)

Parameters

TypeNameDescription
floatdistanceShadow max distance in world units

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the shadow max distance of a directional light
local entity = light.directional.create()

entity:set_shadow_max_distance(100.0)

On this page