gfx.sdfgi.set_max_distance

Client

Sets the maximum draw distance of SDFGI post-processing effect


Syntax

local status = gfx.sdfgi.set_max_distance(
    value
)

Parameters

TypeNameDescription
floatvalueMaximum distance value to apply
Defines how far from the camera SDFGI global illumination is computed. Larger values cover greater distances but require more cascades to maintain detail

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Extend GI coverage for large outdoor scenes
gfx.sdfgi.set_max_distance(500.0)

On this page