self:get_shadow_mode

Client

Retrieves the shadow rendering mode of the point light


Syntax

local mode = self:get_shadow_mode()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intmodeCurrent shadow mode enum value

Examples

Get the shadow mode of a point light
local entity = light.point.create()

core.engine.print("info", "Shadow Mode:", entity:get_shadow_mode())

On this page