Vital.sandbox
GFXSDFGI

gfx.sdfgi.set_normal_bias

Client

The normal bias to be set for the SDFGI post-processing effect


Syntax

local status = gfx.sdfgi.set_normal_bias(value)

Parameters

TypeNameDescription
floatvalueNormal bias value to be applied
Offsets the GI sampling position along the surface normal to reduce self-occlusion and light leaking artifacts on geometry surfaces

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Apply a small normal bias to reduce surface artifacts
--Apply a small normal bias to reduce surface artifacts
gfx.sdfgi.set_normal_bias(1.1)

On this page