WebXRRenderTarget

Abstraction of the XR render target

Hierarchy

Implemented by

Index

Properties

canvasContext

Find examples in Playground
canvasContext: WebGLRenderingContext

xrpresent context of the canvas which can be used to display/mirror xr content

xrLayer

Find examples in Playground

xr layer for the canvas

Methods

dispose

Find examples in Playground
  • dispose(): void

initializeXRLayerAsync

Find examples in Playground
  • initializeXRLayerAsync(xrSession: XRSession): Promise<void>
  • Initializes the xr layer for the session

    Parameters

    Returns Promise<void>

    a promise that will resolve once the XR Layer has been created

Generated using TypeDoc