Vital.sandbox
GFXVolumetric Fog

gfx.volumetric_fog.set_ambient_inject

Client

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


Syntax

local status = gfx.volumetric_fog.set_ambient_inject(value)

Parameters

TypeNameDescription
floatvalueAmbient inject value to be applied
Controls how much ambient light is injected into the volumetric fog volume. Higher values allow the fog to be lit by the scene's ambient light, producing a softer and more naturally integrated appearance

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Allow ambient light to fill the fog volume
--Allow ambient light to fill the fog volume
gfx.volumetric_fog.set_ambient_inject(0.5)

On this page