Vital.sandbox
GFXSDFGI

gfx.sdfgi.set_cascades

Client

The number of cascades to be set for the SDFGI post-processing effect


Syntax

local status = gfx.sdfgi.set_cascades(value)

Parameters

TypeNameDescription
intvalueNumber of cascades to be applied
Higher values extend the range of the global illumination by adding more levels of detail at increasing distances from the camera, at the cost of performance

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Set a high cascade count for large open environments
--Set a high cascade count for large open environments
gfx.sdfgi.set_cascades(8)

On this page