The frame contract
What every screen-space pass reads, and how an engine adapter fills it.
Every screen-space and hybrid pass reads the same inputs. The core never guesses at an engine's conventions: each choice is an explicit flag, and an adapter fills in the inputs.
The output is a reflection radiance, a hit distance, a confidence and a source map. The hybrid resolve and the denoiser read those.
Why it matters to you
- Writing an adapter. Fill the inputs and call the core. The Babylon and pixi adapters are examples of this.
- Using the core directly.
@pmndrs/reflections/coreruns on a bareGPUDevice. You give it textures that follow the contract. Thesssr-coredeveloper page in the examples does this on exact analytic inputs. - Debugging. Most "my reflections look wrong" reports are a convention mismatch: reverse-Z, a flipped Y, motion in the wrong scale, or roughness in the wrong space. The adapters set these for their engine. A custom setup must set them itself.
What each adapter handles for you
Three owns the meshes, materials and the capture render. The core owns textures, passes and lookups.
Live examples
Raw WebGPU fills the frame contract with a small renderer written for the page and runs the core on it. Scene kit and G-buffer shows every target of the contract.