Vital.sandbox
GFXFog

gfx.fog.set_aerial_perspective

Client

The aerial perspective blend amount to be set for the fog post-processing effect


Syntax

local status = gfx.fog.set_aerial_perspective(value)

Parameters

TypeNameDescription
floatvalueAerial perspective value to be applied
Blends the sky's aerial perspective effect into the fog, simulating the way distant objects take on the hue and haze of the atmosphere. Higher values produce stronger atmospheric depth

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Add strong atmospheric haze to distant geometry
--Add strong atmospheric haze to distant geometry
gfx.fog.set_aerial_perspective(0.5)

On this page