Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

react-vr

Write VR web apps with React JS. Super experimental.

$ npm i
$ npm start
$ open http://localhost:8080/examples/index.html
# press V to swap between VR and none-VR modes

API

See the example source for the most up-to-date thing.

class App extends React.Component {
  render() {
    return <ReactVR.Scene renderVR={true} width={600} height={400} camera='maincamera'>
      <ReactVR.KeyboardCamera width={600} height={400} name='maincamera' />
      <Cupcake { ...cupcakeProps } />
      <Cupcake { ...cupcakeProps } position={ this.state.cupcakePosition } />
    </ReactVR.Scene>;
  }
}

About

Write VR web apps with React JS

Resources

License

Releases

No releases published
You can’t perform that action at this time.