self:set_shadow_fade_start
Client
Sets the shadow fade start of the directional light, as a proportion of the shadow max distance at which shadows begin fading out
Syntax
local status = self:set_shadow_fade_start(
fade
)Parameters
| Type | Name | Description |
|---|---|---|
float | fade | Fade start proportion to apply, from 0.0 to 1.0 |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:set_shadow_fade_start(0.8)