self:set_intensity

Client

Sets the physical intensity of the area light in lumens or lux when physical light units are enabled


Syntax

local status = self:set_intensity(
    intensity
)

Parameters

TypeNameDescription
floatintensityPhysical intensity value to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply intensity on a area light
local entity = light.area.create()

entity:set_intensity(1.0)

On this page