self:set_indirect_energy

Client

Sets the indirect energy multiplier of the directional light


Syntax

local status = self:set_indirect_energy(
    energy
)

Parameters

TypeNameDescription
floatenergyIndirect energy multiplier to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_indirect_energy(1.0)

On this page