self:set_volumetric_fog_energy

Client

Sets the volumetric fog energy multiplier of the spot light


Syntax

local status = self:set_volumetric_fog_energy(
    energy
)

Parameters

TypeNameDescription
floatenergyVolumetric fog energy multiplier to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply volumetric fog energy on a spot light
local entity = light.spot.create()

entity:set_volumetric_fog_energy(1.0)

On this page