gfx.ssr.set_depth_tolerance

Client

Sets the depth tolerance of the SSR post-processing effect


Syntax

local status = gfx.ssr.set_depth_tolerance(
    value
)

Parameters

TypeNameDescription
floatvalueDepth tolerance value to apply
Determines how much depth difference is allowed before a ray march hit is rejected. Higher values produce softer, more forgiving reflections while lower values yield sharper, stricter results

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set a lenient depth tolerance for smoother reflections
gfx.ssr.set_depth_tolerance(0.2)

On this page