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
| 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)