Vital.sandbox
GFXSSAO

gfx.ssao.set_power

Client

Sets the power curve of the SSAO post-processing effect


Syntax

local status = gfx.ssao.set_power(value)

Parameters

TypeNameDescription
floatvaluePower value to be applied
Controls the exponent applied to the occlusion factor, affecting the contrast between occluded and non-occluded areas

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Increase occlusion contrast
gfx.ssao.set_power(2.0)

On this page