Vital.sandbox
GFXSSAO

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 be applied
Controls how much occlusion is applied to surfaces facing away from the camera, reducing halo artifacts on silhouettes

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Reduce silhouette halos
gfx.ssao.set_horizon(0.06)

On this page