gfx.fog.set_height_density

Client

Sets the height density of the fog post-processing effect


Syntax

local status = gfx.fog.set_height_density(
    value
)

Parameters

TypeNameDescription
floatvalueHeight density value to apply
Controls how quickly fog density increases as height decreases. Use a negative value to instead increase fog density as height increases

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Increase fog density toward the ground
gfx.fog.set_height_density(10.0)
Increase fog density toward the sky
gfx.fog.set_height_density(-10.0)

On this page