XRSessionMode enum of WebXR API defines the possible values for session modes.
- This value indicates that the rendered image output will be shown as an element in a regular HTML document on a flat surface. Inline sessions can be displayed as a mono or stereo image and might have or not have viewer tracking. This type of session does not require special hardware and should be supported by most User Agents that support WebXR API.
- This value indicates that the rendered session will be displayed in an immersive XR device in VR mode (is not intended to be blended with the surrounding environment). The
XRSession.environmentBlendModeis expected to be
"opaque"if possible, but might be
"additive"if the hardware requires it.
|WebXR Device API
The definition of 'XRSessionMode' in that specification.
|Working Draft||Initial definition.|