Open andybak opened 2 months ago
This is the default button supplied by the webxr module that does prechecks to see if any component of webxr is possible https://github.com/mrdoob/three.js/blob/master/examples/jsm/webxr/VRButton.js#L3. extracting that out and doing styling/code ourselves is probably optimal.
may also want to switch it to the code found in XR Button, which should unlock immersive-ar
https://github.com/mrdoob/three.js/blob/master/examples/jsm/webxr/XRButton.js
There's also an ARButton: https://github.com/mrdoob/three.js/blob/master/examples/jsm/webxr/ARButton.js
which seems to work although the model isn't visible when i switch to AR mode. I think this is off-topic for this ticket but it's an interesting discovery.
tooltip over a small xr icon?