Vital.sandbox
GFXFog

gfx.fog.set_light_energy

Client

The light energy to be set for the fog post-processing effect


Syntax

local status = gfx.fog.set_light_energy(value)

Parameters

TypeNameDescription
floatvalueLight energy value to be applied
Controls the brightness of the fog's light color. Higher values produce a more luminous, glowing fog appearance

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Set a bright fog light
--Set a bright fog light
gfx.fog.set_light_energy(2.0)

On this page