self:set_cull_mask

Client

Sets the cull mask of the directional light, controlling which layers are affected by this light


Syntax

local status = self:set_cull_mask(
    mask
)

Parameters

TypeNameDescription
intmaskCull mask bitmask to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply cull mask on a directional light
local entity = light.directional.create()

entity:set_cull_mask(1)

On this page