Skip to main content

Interface: XRSceneLike

Defined in: src/core/WebXR.ts:25

Minimal structural view of a scene that can be driven in an XR session.

Both Scene (via camera) and ThreeDScene (via camera3D) satisfy this shape, so enableXR(scene) accepts either without a hard import of the Scene classes (which keeps this module free of a scene-graph dependency cycle).

Properties​

camera?​

readonly optional camera: object

Defined in: src/core/WebXR.ts:31

2D scene camera (base Scene). Used when no camera3D is present.

getCamera()​

getCamera(): Camera

Returns​

Camera


camera3D?​

readonly optional camera3D: object

Defined in: src/core/WebXR.ts:33

3D scene camera (ThreeDScene). Preferred for immersive rendering.

getCamera()​

getCamera(): Camera

Returns​

Camera


renderer​

readonly renderer: object

Defined in: src/core/WebXR.ts:29

The renderer wrapper exposing the underlying THREE.WebGLRenderer.

getThreeRenderer()​

getThreeRenderer(): WebGLRenderer

Returns​

WebGLRenderer


threeScene​

readonly threeScene: Scene

Defined in: src/core/WebXR.ts:27

The three.js scene graph to render in the headset.