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
| Type | Name | Description |
|---|---|---|
float | value | Density 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
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
--Set a moderate volumetric fog density
gfx.volumetric_fog.set_density(0.05)