Manages WebGL render buffers for a view.

Constructors

Methods

Constructors

Methods

  • Retrieves a render buffer by its ID, creating it if necessary.

    Parameters

    • id: string

      Unique identifier for the render buffer

    • Optionaloptions: {
          colorFilter?: "linear" | "nearest";
          depthTexture?: boolean;
          depthTextureCompare?: boolean;
          size?: [number, number];
      }

      Optional configuration

      • OptionalcolorFilter?: "linear" | "nearest"
      • OptionaldepthTexture?: boolean

        Whether the buffer includes a depth texture

      • OptionaldepthTextureCompare?: boolean
      • Optionalsize?: [number, number]

        Buffer size [width, height]

    Returns WebGLRenderBuffer

    The requested or newly created render buffer