Vital.sandbox
GFXSDFGI

gfx.sdfgi.set_min_cell_size

Client

The minimum cell size to be set for the SDFGI post-processing effect


Syntax

local status = gfx.sdfgi.set_min_cell_size(value)

Parameters

TypeNameDescription
floatvalueMinimum cell size value to be applied
Controls the resolution of the innermost SDFGI cascade. Smaller values capture finer scene detail near the camera but increase memory and computation cost

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Set a fine-grained cell size for detailed near-field GI
--Set a fine-grained cell size for detailed near-field GI
gfx.sdfgi.set_min_cell_size(0.2)

On this page