gfx.fog.set_sun_scatter

Client

Sets the sun scatter amount of the fog post-processing effect


Syntax

local status = gfx.fog.set_sun_scatter(
    value
)

Parameters

TypeNameDescription
floatvalueSun scatter value to apply
Controls how much the sun's light scatters through the fog, producing a visible glow or halo effect in the direction of the sun

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Add a visible sun glow through the fog
gfx.fog.set_sun_scatter(0.5)

On this page