Vital.sandbox
GFXVolumetric Fog

gfx.volumetric_fog.set_temporal_reprojection_enabled

Client

Toggles temporal reprojection for the volumetric fog post-processing effect


Syntax

local status = gfx.volumetric_fog.set_temporal_reprojection_enabled(state)

Parameters

TypeNameDescription
boolstateDetermines whether temporal reprojection is used:
• When true - temporal reprojection is enabled, reusing data from previous frames to smooth out the fog at a lower per-frame cost
• When false - temporal reprojection is disabled

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Enable temporal reprojection for smoother fog at lower cost
--Enable temporal reprojection for smoother fog at lower cost
gfx.volumetric_fog.set_temporal_reprojection_enabled(true)

On this page