Vital.sandbox
GFXVolumetric Fog

gfx.volumetric_fog.set_anisotropy

Client

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


Syntax

local status = gfx.volumetric_fog.set_anisotropy(value)

Parameters

TypeNameDescription
floatvalueAnisotropy value to be applied
Controls the directional bias of light scattering within the fog. Positive values scatter light forward in the direction of the light source, producing a glowing halo effect. Negative values scatter light backward, creating a more diffuse appearance

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Bias scattering forward for a sun halo effect
--Bias scattering forward for a sun halo effect
gfx.volumetric_fog.set_anisotropy(0.5)

On this page