Vital.sandbox
GFXVolumetric Fog

gfx.volumetric_fog.set_detail_spread

Client

The detail spread to be set for the volumetric fog post-processing effect


Syntax

local status = gfx.volumetric_fog.set_detail_spread(value)

Parameters

TypeNameDescription
floatvalueDetail spread value to be applied
Controls how detail samples are distributed across the fog volume. Higher values spread detail more unevenly, concentrating finer detail near the camera and coarser detail further away

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Concentrate fog detail near the camera
--Concentrate fog detail near the camera
gfx.volumetric_fog.set_detail_spread(2.0)

On this page