What to include and why

three.js 3d library ./three.js

VRControls.js acquires positional information from connected VR devices and applies the transformations to a three.js camera object. ./VRControls.js

VREffect.js handles stereo camera setup and rendering. ./VREffect.js

A polyfill for WebVR using the Device{Motion,Orientation}Event API. ./webvr-polyfill.js

Helps enter and exit VR mode, provides best practices while in VR. ./webvr-manager.js

Assuming you are hosting your code on this Neocities account:

For more details on this boiler plate

See github.com/borismus/webvr-boilerplate/