stalgiag / p5.xr

a library that helps turn p5.js sketches into immersive experiences using WebXR
GNU Lesser General Public License v2.1
117 stars 25 forks source link

Fallback inline mode for devices without VR #122

Closed stalgiag closed 3 years ago

stalgiag commented 3 years ago

Resolves #97

This still needs cleanup and commenting. Also need to check how it plays with the unit tests. Functionality is in place though. When a VR sketch is started on a device without the ability to enter an immersive session, the sketch is automatically shown as click + drag to look, single-view inline.