self:get_shadow_caster_mask

Client

Retrieves the shadow caster mask of the directional light, which controls which layers cast shadows


Syntax

local mask = self:get_shadow_caster_mask()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intmaskCurrent shadow caster mask bitmask

Examples

Get shadow caster mask of a directional light
local entity = light.directional.create()

core.engine.print("info", "Shadow Caster Mask:", entity:get_shadow_caster_mask())

On this page