diff --git a/input-selection-2.html b/input-selection-2.html index cccec0f..4c307d4 100644 --- a/input-selection-2.html +++ b/input-selection-2.html @@ -92,6 +92,15 @@ }); navigator.xr.requestSession('inline').then(onSessionStarted); + if (navigator.xr.offerSession !== undefined) { + navigator.xr.offerSession('immersive-vr', { + requiredFeatures: ['local-floor'] + }).then((session) => { + xrButton.setSession(session); + session.isImmersive = true; + onSessionStarted(session); + }); + } } }