SDK3DVerse_WebXR_Ext

Create a WebXR session, set viewports and update camera from XRViewerPose.

This extension is not supported in hardware decoding mode.

Methods

(async) createSession(settings) → {XRSession}

Parameters:
Name Type Description
settings Object
Properties
Name Type Description
sessionMode string

WebXR session mode. See XRSessionMode.

referenceSpaceType string

WebXR type of reference space. See XRReferenceSpaceType.

layerInit Object

An object conforming to the XRWebGLLayerInit dictionary, providing configuration options for the XRWebGLLayer.

Returns:

A Promise that resolves with an XRSession

Type
XRSession