self:set_shadow_caster_mask
Client
Sets the shadow caster mask of the directional light, controlling which layers cast shadows
Syntax
local status = self:set_shadow_caster_mask(
mask
)Parameters
| Type | Name | Description |
|---|---|---|
int | mask | Shadow caster mask bitmask to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:set_shadow_caster_mask(1)