Skip to main content

Experimental WebXR

From-v10Status: Work-In-Progress

@luma.gl/experimental exposes experimental WebGL-only WebXR helpers. They stay outside @luma.gl/engine because WebXR brings its own session lifecycle, frame scheduler, per-view rendering state, raw camera access, and future input/layer/depth APIs.

Scope

  • WebXRAnimationFrameProvider drives an engine AnimationLoop from XRSession.requestAnimationFrame().
  • WebXRManager prepares an XRWebGLLayer and resolves per-view framebuffer, viewport, projection, and view matrix state.
  • WebXRCameraTexture binds WebXR Raw Camera Access as a borrowed read-only WebGL texture sampled through GLSL sampler2D.

WebGPU WebXR camera textures, input sources, hit testing, anchors, depth sensing, and layer abstractions are not part of this v10 work in progress.