Directional Light
self:get_shadow_max_distance
ClientRetrieves 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())self:get_shadow_pancake_size
Retrieves the shadow pancake size of the directional light, which reduces peter-panning on shadow edges by squashing the shadow frustum
self:get_shadow_fade_start
Retrieves the shadow fade start of the directional light, as a proportion of the shadow max distance at which shadows begin fading out