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
| Type | Name | Description |
|---|---|---|
bool | state | Determines whether sky light is sampled: • When true - SDFGI reads and incorporates sky light into global illumination• When false - sky light contribution is ignored |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
--Include sky light in GI calculation
gfx.sdfgi.set_read_sky_light(true)