gfx.vol_fog.set_length

Client

Sets the draw length of the volumetric fog post-processing effect


Syntax

local status = gfx.vol_fog.set_length(
    value
)

Parameters

TypeNameDescription
floatvalueLength value to apply
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, false otherwise

Examples

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

On this page