Skip to content

Commit

Permalink
Fix not requesting VR immersive mode fixes #203
Browse files Browse the repository at this point in the history
  • Loading branch information
TiborUdvari committed Mar 7, 2024
1 parent 4bc3b9a commit 094c129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/p5xr/core/p5xr.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export default class p5xr {
const mode = this.isVR ? 'VR' : 'AR';
const session = this.isVR ? 'immersive-vr' : 'immersive-ar';
const supported = await navigator.xr.isSessionSupported(session);
this.hasImmersive = supported;
this.xrButton.setAvailable(supported, mode);
} else {
console.log('XR Not Available');
Expand Down

0 comments on commit 094c129

Please sign in to comment.