self:set_shadow_caster_mask

Client

Sets the shadow caster mask of the spot 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 spot light
local entity = light.spot.create()

entity:set_shadow_caster_mask(1)

On this page