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?
readonlyoptionalcamera:object
Defined in: src/core/WebXR.ts:31
2D scene camera (base Scene). Used when no camera3D is present.
getCamera()
getCamera():
Camera
Returns
camera3D?
readonlyoptionalcamera3D:object
Defined in: src/core/WebXR.ts:33
3D scene camera (ThreeDScene). Preferred for immersive rendering.
getCamera()
getCamera():
Camera
Returns
renderer
readonlyrenderer:object
Defined in: src/core/WebXR.ts:29
The renderer wrapper exposing the underlying THREE.WebGLRenderer.
getThreeRenderer()
getThreeRenderer():
WebGLRenderer
Returns
threeScene
readonlythreeScene:Scene
Defined in: src/core/WebXR.ts:27
The three.js scene graph to render in the headset.