gfx.sdfgi.set_normal_bias

Client

Sets the normal bias of SDFGI post-processing effect


Syntax

local status = gfx.sdfgi.set_normal_bias(
    value
)

Parameters

TypeNameDescription
floatvalueNormal bias value to apply
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, false otherwise

Examples

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

On this page