Vital.sandbox
GFXVolumetric Fog

gfx.volumetric_fog.set_gi_inject

Client

The GI injection amount to be set for the volumetric fog post-processing effect


Syntax

local status = gfx.volumetric_fog.set_gi_inject(value)

Parameters

TypeNameDescription
floatvalueGI inject value to be applied
Controls how much global illumination light is injected into the volumetric fog. Higher values make the fog respond to and carry indirect light throughout the scene

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Allow GI to illuminate the fog volume
--Allow GI to illuminate the fog volume
gfx.volumetric_fog.set_gi_inject(1.0)

On this page