15

GitHub - MozillaReality/hello-webxr: Hello WebXR

 4 years ago
source link: https://github.com/MozillaReality/hello-webxr
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Hello WebXR!

screenshot

Try it here!

This is a WebXR demo made to celebrate the WebXR spec release at the end of 2019. It showcases several small experiences, perfect to test different kind of interactions and situations in Virtual Reality. For newcomers, it's a nice entry point to the medium, and web developers may find many things they can reuse and learn (more info on the launch article).

How to build

  1. npm install
  2. npm start
  3. Open http://localhost:8080

Shader packing

If you make changes to the shaders you'll need to repack them. To keep things simple, we made a simple script packshaders.py:

python packshaders.py [seconds]

where seconds is an optional parameter (defaults to 5) to define how many seconds to wait until next rebuild (doesn't watch file changes)

Third party content


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK