self:set_temperature

Client

Sets the color temperature of the directional light in Kelvin


Syntax

local status = self:set_temperature(
    kelvin
)

Parameters

TypeNameDescription
floatkelvinColor temperature in Kelvin to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_temperature(1.0)

On this page