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
| Type | Name | Description |
|---|---|---|
bool | state | true to enable energy normalization, false to disable |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.area.create()
entity:set_area_normalize_energy(true)