self:set_shadow_caster_mask

Client

Sets the shadow caster mask of the area light, controlling which layers cast shadows


Syntax

local status = self:set_shadow_caster_mask(
    mask
)

Parameters

TypeNameDescription
intmaskShadow caster mask bitmask to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply shadow caster mask on a area light
local entity = light.area.create()

entity:set_shadow_caster_mask(1)

On this page