tree: 3eac1f9068bca8ac42b70f6fb4716cb161f25096 [path history] [tgz]
  1. insecure/
  2. js/
  3. media/
  4. 00-hello-webvr.html
  5. 01-vr-input.html
  6. 02-stereo-rendering.html
  7. 03-vr-presentation.html
  8. 04-simple-mirroring.html
  9. 04b-simple-mirroring-2.html
  10. 05-room-scale.html
  11. 06-vr-audio.html
  12. 07-advanced-mirroring.html
  13. 08-dynamic-resolution.html
  14. 09-splash-screen.html
  15. index.html
  18. test-canvas-attributes.html
  19. test-slow-render.html
  20. test-vr-links.html
  21. XX-360-panorama.html
  22. XX-360-video.html
  23. XX-vr-controllers.html

WebVR Samples

Simple examples of using the WebVR API.

These examples are intended to demonstrate basic use of the WebVR API without framework support. The code makes use of some simple WebGL utilities (js/wglu) and the glMatrix library to reduce complexity of the WebGL code, but neither are necessary for using WebVR.

You can run these samples live at

Experience Prerequisites

These samples use WebGL and matrix math to demonstrate the WebVR API. While most of it is hidden behind libraries and utility functions for brevity, it's assumed that you have at least a conceptual knowledge of both.

Further Reading


WebVR image used with the permission of Jaume Sanchez.

“Afterglow of a sunset” image produced by the Masato OHTA and licensed under the Creative Commons Attribution 2.0 Generic license