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
| Type | Name | Description |
|---|---|---|
float | distance | Current shadow max distance in world units |
Examples
local entity = light.directional.create()
core.engine.print("info", "Shadow Max Distance:", entity:get_shadow_max_distance())