Directional Light
self:set_shadow_max_distance
ClientSets the maximum distance at which the directional light renders shadows
Syntax
local status = self:set_shadow_max_distance(
distance
)Parameters
| Type | Name | Description |
|---|---|---|
float | distance | Shadow max distance in world units |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:set_shadow_max_distance(100.0)self:set_shadow_pancake_size
Sets the shadow pancake size of the directional light, which reduces peter-panning on shadow edges by squashing the shadow frustum
self:set_shadow_fade_start
Sets the shadow fade start of the directional light, as a proportion of the shadow max distance at which shadows begin fading out