self:set_energy

Client

Sets the energy (brightness multiplier) of the directional light


Syntax

local status = self:set_energy(
    energy
)

Parameters

TypeNameDescription
floatenergyEnergy value to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply energy on a directional light
local entity = light.directional.create()

entity:set_energy(1.0)

On this page