@pmndrs/reflections
    Preparing search index...

    Class Reflections

    G-buffer + screen-space reflections + (ray-traced fallback) + probes + (denoiser) + hybrid composite on a three scene, drawn through its own RenderPipeline in place of renderer.render(scene, camera). Tone mapping and the output colour space are the renderer's (renderer.toneMapping as usual).

    Index
    pipeline: RenderPipeline
    probes: ReflectionProbes | null

    The probe set in use (null with probes: false).

    renderer: WebGPURenderer
    scene: Scene
    trace: { provider: { destroy(): void }; refit(): void } | null

    The ray-traced fallback's provider and refit() (null without rayTracing).

    • (Re)bake the automatic probe (with the scene's current meshes and environment). Needed after the scene changes: the capture is a snapshot. A probe set you passed in is yours to bake.

      Returns void

    • Rebuild the composite after changing ssr.settings between 'full' / 'half' resolution, the environment or the probes.

      Returns void

    • Draw one frame to the canvas (or the renderer's current target): G-buffer, trace, denoise, composite. Replaces renderer.render(scene, camera). With TAA, pass its jitter / projection (ScreenSpaceReflectionsPass.render).

      Parameters

      • camera: Camera
      • options: { jitter?: readonly [number, number]; projection?: ArrayLike<number> } = {}

      Returns void