self:get_shadow_max_distance

Client

Retrieves the maximum distance at which the directional light renders shadows


Syntax

local distance = self:get_shadow_max_distance()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatdistanceCurrent shadow max distance in world units

Examples

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

core.engine.print("info", "Shadow Max Distance:", entity:get_shadow_max_distance())

On this page