self:set_intensity

Client

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

entity:set_intensity(1.0)

On this page