self:set_shadow_mode

Client

Sets the shadow rendering mode of the point light


Syntax

local status = self:set_shadow_mode(
    mode
)

Parameters

TypeNameDescription
intmodeShadow mode enum value — refer to light.point.shadow_mode

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the shadow mode of a point light to cube map
local entity = light.point.create()

entity:set_shadow_mode(light.point.shadow_mode.CUBE)

On this page