webvr-ui
webvr-ui copied to clipboard
Update to work with three.js rev86
Actually doesn't work correctly if you use last version of threejs (r86) (and I suppose and above) Is there any plan to update to with with the last revision of threejs which is not using VREffect and VRControls yet?
thanks for bringing this to our attention, we will look into this, it is our plan to support future THREE.js versions
Do you have any update on this? Many thanks!
I have created a pull request for three.js that resolves this issue. I am hoping this gets merged as it is best for the device to be captured through the event.
Until then you can work around the issue with one additional step:
var enterVR = new webvrui.EnterVRButton(renderer.domElement, {});
enterVR.getVRDisplay().then(display=> renderer.vr.setDevice(display));