Vital.sandbox
GFXSSAO

gfx.ssao.set_direct_light_affect

Client

Sets the direct lighting influence of the SSAO post-processing effect


Syntax

local status = gfx.ssao.set_direct_light_affect(value)

Parameters

TypeNameDescription
floatvalueInfluence value to be applied
Controls how much SSAO occlusion darkens areas lit by direct light sources. A value of 0 leaves direct lighting unaffected

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Apply occlusion to directly lit surfaces
gfx.ssao.set_direct_light_affect(0.5)

On this page