gfx.vol_fog.set_ambient_inject

Client

Sets the ambient light injection amount of the volumetric fog post-processing effect


Syntax

local status = gfx.vol_fog.set_ambient_inject(
    value
)

Parameters

TypeNameDescription
floatvalueAmbient inject value to apply
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, false otherwise

Examples

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

On this page