self:set_shadow_mode
Client
Sets the shadow rendering mode of the directional light
Syntax
local status = self:set_shadow_mode(
mode
)Parameters
| Type | Name | Description |
|---|---|---|
int | mode | Shadow mode enum value — refer to light.directional.shadow_mode |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:set_shadow_mode(light.directional.shadow_mode.PARALLEL_4_SPLITS)