Vital.sandbox
GFXSDFGI

gfx.sdfgi.set_use_occlusion

Client

Toggles occlusion for the SDFGI post-processing effect


Syntax

local status = gfx.sdfgi.set_use_occlusion(state)

Parameters

TypeNameDescription
boolstateDetermines whether occlusion is used:
• When true - occlusion is enabled, preventing light from passing through solid geometry
• When false - occlusion is disabled

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Enable occlusion for more accurate GI shadowing
--Enable occlusion for more accurate GI shadowing
gfx.sdfgi.set_use_occlusion(true)

On this page