Skip to content

MozillaReality/hello-webxr

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
res
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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