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 apply
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, false otherwise

Examples

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

On this page