Directional Light

self:set_bake_mode

Client

Sets the bake mode of the directional light

Syntax

local status = self:set_bake_mode(
    mode
)

Parameters

TypeNameDescription
light.directional.bake_modemodeBake mode to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply bake mode on a directional light
local entity = light.directional.create()

entity:set_bake_mode(light.directional.bake_mode.STATIC)

On this page