WebXROptions
XR.WebXROptions exported from @manycore/aholo-viewer.
interface WebXROptions {
session: WebXRSession;
referenceSpace?:
| "local"
| "local-floor"
| "unbounded"
| "bounded-floor"
| "viewer";
optionalFeatures?: string[];
requiredFeatures?: string[];
framebufferScaleFactor?: number;
pixelRatio?: number;
depthScale?: number;
computeCameraMatrix?(transform: Float32Array, viewIndex: number): Matrix4;
}
session: WebXRSession;
referenceSpace?:
| "local"
| "local-floor"
| "unbounded"
| "bounded-floor"
| "viewer";
optionalFeatures?: string[];
requiredFeatures?: string[];
framebufferScaleFactor?: number;
pixelRatio?: number;
depthScale?: number;
computeCameraMatrix?(transform: Float32Array, viewIndex: number): Matrix4;
}
Hierarchy
- XRPluginOptions
- WebXROptions
Properties
session
reference Space
referenceSpace?:
| "local"
| "local-floor"
| "unbounded"
| "bounded-floor"
| "viewer"
| "local"
| "local-floor"
| "unbounded"
| "bounded-floor"
| "viewer"
optional Features
optionalFeatures?: string[]
required Features
requiredFeatures?: string[]
framebuffer Scale Factor1
framebufferScaleFactor?: number
Inherited from XRPluginOptions.framebufferScaleFactor
pixel Ratio1
pixelRatio?: number
pixel ratio of the viewer,
Inherited from XRPluginOptions.pixelRatio
depth Scale1
depthScale?: number
the scale for XRRenderState.depthFar
Inherited from XRPluginOptions.depthScale
Methods
compute Camera Matrixtransform => new Matrix4().fromArray(transform)
-
compute camera transform matrix from XRView
Parameters
- transform: Float32Array
XRView.transform.matrix
- viewIndex: number
index of the camera associated view
Returns Matrix4
Inherited from XRPluginOptions.computeCameraMatrix
- transform: Float32Array
Remarks
use as following parameter: