Vital.sandbox
GFXVolumetric Fog

gfx.volumetric_fog.set_density

Client

The density to be set for the volumetric fog post-processing effect


Syntax

local status = gfx.volumetric_fog.set_density(value)

Parameters

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

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

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

On this page