self:set_intensity

Client

Sets the physical intensity of the spot 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 spot light
local entity = light.spot.create()

entity:set_intensity(1.0)

On this page