Vital.sandbox
GFXSDFGI

gfx.sdfgi.set_read_sky_light

Client

Toggles sky light sampling for the SDFGI post-processing effect


Syntax

local status = gfx.sdfgi.set_read_sky_light(state)

Parameters

TypeNameDescription
boolstateDetermines whether sky light is sampled:
• When true - SDFGI reads and incorporates sky light into global illumination
• When false - sky light contribution is ignored

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Include sky light in GI calculation
--Include sky light in GI calculation
gfx.sdfgi.set_read_sky_light(true)

On this page