@@ -104,6 +104,13 @@ class ARButton {
currentSession.end();
+ if ( navigator.xr.offerSession !== undefined ) {
+
+ navigator.xr.offerSession( 'immersive-ar', sessionInit )
+ .then( onSessionStarted );
+ }
}
};
@@ -70,6 +70,13 @@ class VRButton {
+ navigator.xr.offerSession( 'immersive-vr', sessionInit )
@@ -74,6 +74,13 @@ class XRButton {
+ navigator.xr.offerSession( mode, sessionOptions )