gfx.vol_fog.set_density

Client

Sets the density of the volumetric fog post-processing effect


Syntax

local status = gfx.vol_fog.set_density(
    value
)

Parameters

TypeNameDescription
floatvalueDensity value to apply
Controls the base thickness of the volumetric gfx.fog. Higher values produce denser, more opaque fog that scatters and absorbs light more strongly throughout the volume

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set a moderate volumetric fog density
gfx.vol_fog.set_density(0.05)

On this page