gfx.ssao.set_horizon

Client

Sets the horizon threshold of the SSAO post-processing effect


Syntax

local status = gfx.ssao.set_horizon(
    value
)

Parameters

TypeNameDescription
floatvalueHorizon value to apply
Controls how much occlusion is applied to surfaces facing away from the camera, reducing halo artifacts on silhouettes

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Reduce silhouette halos
gfx.ssao.set_horizon(0.06)

On this page