Function exportRenderTarget

  • Exports a render target to a blob. The type is automatically picked from exr to png based on the render target.

    Parameters

    • renderer: WebGLRenderer
    • target: WebGLRenderTarget<Texture> | WebGLMultipleRenderTargets

      render target to export

    • mimeType: string = 'auto'

      mime type to use. If auto (default), then it will be picked based on the render target type.

    • textureIndex: number = 0

      index of the texture to use in the render target (only in case of multiple render target)

    Returns Blob