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
| Type | Name | Description |
|---|---|---|
bool | state | Determines 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
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
--Enable temporal reprojection for smoother fog at lower cost
gfx.volumetric_fog.set_temporal_reprojection_enabled(true)gfx.volumetric_fog.is_temporal_reprojection_enabled
Retrieves whether temporal reprojection is currently enabled for the volumetric fog post-processing effect
gfx.volumetric_fog.set_temporal_reprojection_amount
The temporal reprojection blend amount to be set for the volumetric fog post-processing effect