Skip to main content

Module ssr

Module ssr 

Source
Expand description

Screen-space reflection (SSR) configuration. Backend-agnostic resolve of the authored PostProcessConfig SSR fields into clamped settings, plus the per-frame GPU uniform. The screen-space ray-march itself lives in each backend’s shader; this module owns only the parameter math so it can be unit-tested without a GPU.

Structs§

SsrSettings
Clamped SSR tunables resolved from the authored asset fields. Held by the backend and turned into a per-frame SsrParams once the camera is known.

Constants§

REFLECTION_ROUGHNESS_CUT
Canonical roughness cut for sharp reflections: surfaces rougher than this get no screen-space / ray-traced reflection. One value drives four shaders that must agree for the reflection pipeline to be self-consistent: