A WebXR Device API
XRFrame object is passed into the
requestAnimationFrame() callback function and provides access to the information needed in order to render a single frame of animation for an
XRSession describing a VR or AR scene. Events which communicate the tracking state of objects also provide an
XRFrame reference as part of their structure.
In addition to providing a reference to the
XRSession for which this frame is to be rendered, the
getViewerPose() method is provided to obtain the
XRViewerPose describing the viewer's position and orientation in space, and
getPose() can be used to create an
XRPose describing the relative position of one
XRSpace relative to another.
Float32Arraywith radii for a list of hand joint spaces. Returns
trueif successful for all spaces.
Float32Arraywith the matrices of the poses, relative to a given base space. Returns
trueif all spaces have a valid pose.
XRCPUDepthInformationobject containing CPU depth information for the frame.
|WebXR Device API |
BCD tables only load in the browser