showing results for - "aframe react"
Julia
07 Mar 2018
1import 'aframe';import 'aframe-particle-system-component';import {Entity, Scene} from 'aframe-react';import React from 'react';import ReactDOM from 'react-dom'class VRScene extends React.Component {  render () {    return (      <Scene>        <Entity geometry={{primitive: 'box'}} material={{color: 'red'}} position={{x: 0y: 0z: -5}}/>        <Entity particle-system={{preset: 'snow'}}/>        <Entity light={{type: 'point'}}/>        <Entity gltf-model={{src: 'virtualcity.gltf'}}/>        <Entity text={{value: 'HelloWebVR!'}}/>      </Scene>    );  }} ReactDOM.render(<VRScene/>document.querySelector('#sceneContainer'));