Vital.sandbox
GFXVolumetric Fog

gfx.volumetric_fog.set_length

Client

The draw length to be set for the volumetric fog post-processing effect


Syntax

local status = gfx.volumetric_fog.set_length(value)

Parameters

TypeNameDescription
floatvalueLength value to be applied
Sets the maximum distance from the camera at which volumetric fog is rendered. Larger values extend the fog further into the scene at the cost of performance

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Extend volumetric fog across a large distance
--Extend volumetric fog across a large distance
gfx.volumetric_fog.set_length(512.0)

On this page