self:set_shadow_enabled

Client

Sets whether the directional light casts shadows


Syntax

local status = self:set_shadow_enabled(
    state
)

Parameters

TypeNameDescription
boolstatetrue to enable shadow casting, false to disable

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply shadow enabled on a directional light
local entity = light.directional.create()

entity:set_shadow_enabled(true)

On this page