@pmndrs/reflections
    Preparing search index...

    Class ReflectionsView

    Hierarchy

    • Sprite
      • ReflectionsView
    Index
    device: GPUDevice
    lastFrame: FrameInputs | null = null

    The frame handed to core by the last render() (debug, the denoise seam).

    pixiRenderer: Renderer
    • get colorTarget(): RenderTexture

      Render the View3D here (renderer.render({ container: view3d, target: view.colorTarget })): rgba16float, the frame's size.

      Returns RenderTexture

    • get debugView(): | "normal"
      | "roughness"
      | "motion"
      | "albedo"
      | "metalness"
      | "radiance"
      | "confidence"
      | "hitDistance"
      | "final"
      | "lit"
      | "reflection"
      | "weight"

      The composite's debug view.

      Returns
          | "normal"
          | "roughness"
          | "motion"
          | "albedo"
          | "metalness"
          | "radiance"
          | "confidence"
          | "hitDistance"
          | "final"
          | "lit"
          | "reflection"
          | "weight"

    • set debugView(
          v:
              | "normal"
              | "roughness"
              | "motion"
              | "albedo"
              | "metalness"
              | "radiance"
              | "confidence"
              | "hitDistance"
              | "final"
              | "lit"
              | "reflection"
              | "weight",
      ): void

      Parameters

      • v:
            | "normal"
            | "roughness"
            | "motion"
            | "albedo"
            | "metalness"
            | "radiance"
            | "confidence"
            | "hitDistance"
            | "final"
            | "lit"
            | "reflection"
            | "weight"

      Returns void

    • Destroys this sprite renderable and optionally its texture.

      Parameters

      • Optionaloptions: DestroyOptions

        Options parameter. A boolean will act as if all options have been set to that value

      Returns void

      sprite.destroy();
      sprite.destroy(true);
      sprite.destroy({ texture: true, textureSource: true });
    • The textures a ReflectionsFilter reads (for a second filtered sprite, e.g. a debug inset).

      Returns {
          aux: Texture<TextureSource<any>>;
          material: Texture<TextureSource<any>>;
          motion: Texture<TextureSource<any>>;
          normal: Texture<TextureSource<any>>;
          reflection: Texture<TextureSource<any>>;
          sceneColor: RenderTexture;
      }

    • Resizes the view (pixi units); reallocates the frame and the tracer. Size the View3D again after.

      Parameters

      • width: number
      • height: number
      • resolution: number = ...

      Returns void