The XRSession of the WebXR Device API provides the means to interact an AR/VR device, providing features such as polling the viewer (viewer pose), getting information about the user's environment, presenting imagery to the user. To get an XRSession call XR.requestSession().
The XRSession of the WebXR Device API provides the means to interact an AR/VR device, providing features such as polling the viewer (viewer pose), getting information about the user's environment, presenting imagery to the user. To get an XRSession call XR.requestSession().
(request-reference-space this type)Method.
The requestReferenceSpace() method of the web.ar.XRSession
returns a js.Promise that resolves with either an instance
XRReferenceSpace or of XRBoundedReferenceSpace which contains
about the current session tracking behavior.
var promise = XRSession.requestReferenceSpace(type);
See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestReferenceSpace
Method. The requestReferenceSpace() method of the `web.ar.XRSession` returns a `js.Promise` that resolves with either an instance `XRReferenceSpace` or of `XRBoundedReferenceSpace` which contains about the current session tracking behavior. `var promise = XRSession.requestReferenceSpace(type);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestReferenceSpace`
(update-render-state this & args)Method.
The updateRenderState method of web.ar.XRSession interface
WebXR API submits a new web.other.XRRenderState.
`XRSession.updateRenderState(...)
Note: Set inlineVerticalFieldOfView if and only if the web.ar.XRSession is "inline".`
See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateRenderState
Method. The updateRenderState method of `web.ar.XRSession` interface WebXR API submits a new `web.other.XRRenderState`. `XRSession.updateRenderState(...) Note: Set `inlineVerticalFieldOfView` if and only if the `web.ar.XRSession` is \"inline\".` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateRenderState`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |