tree: 2e8ec3609db298ba6ae99c0e75fcfdb8c5b34f92 [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
  16. LICENSE.md
  17. README.md
  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
samples/README.md

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 https://webvr.info/samples/

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

Attributions

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