Javascript libraries
Required files:
- three.js 3d library
- VRControls.js acquires positional information from connected VR devices and applies the transformations to a three.js camera object.
- VREffect.js handles stereo camera setup and rendering.
- webvr-polyfill.js A polyfill for WebVR using the Device{Motion,Orientation}Event API.
- webvr-manager.js Helps enter and exit VR mode, provides best practices while in VR.
All files in one package boilerplate.zip. Please make sure you use a web server to deliver the content, not just your browser!
You want to make sure your laptop and phone works well with VR and the boilerplate? Try it here
To learn more webVR check out the rest of the tutorial.