self:set_area_normalize_energy

Client

Sets whether energy normalization is enabled on the area light, keeping perceived brightness constant regardless of area size


Syntax

local status = self:set_area_normalize_energy(
    state
)

Parameters

TypeNameDescription
boolstatetrue to enable energy normalization, false to disable

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Enable energy normalization on an area light
local entity = light.area.create()

entity:set_area_normalize_energy(true)

On this page