gfx.fog.set_density

Client

Sets the density of the fog post-processing effect


Syntax

local status = gfx.fog.set_density(
    value
)

Parameters

TypeNameDescription
floatvalueDensity value to apply
Controls the overall thickness of the gfx.fog. Higher values produce denser, more opaque fog that obscures the scene more quickly with distance

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set a thick dense fog
gfx.fog.set_density(0.05)

On this page