Write VR web apps with React JS
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit 25389c5 Dec 27, 2015
Permalink
Failed to load latest commit information.
examples more objects Dec 27, 2015
src more objects Dec 27, 2015
.babelrc working example Dec 24, 2015
.gitignore Initial commit Dec 24, 2015
.npmrc working example Dec 24, 2015
LICENSE Initial commit Dec 24, 2015
README.md more objects Dec 27, 2015
package.json working example Dec 24, 2015
webpack.config.js use keyboard at react level Dec 24, 2015
webpack.production.config.js working example Dec 24, 2015

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>;
  }
}