Answers for "aframe react"

0

aframe react

import '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: 0, y: 0, z: -5}}/>        <Entity particle-system={{preset: 'snow'}}/>        <Entity light={{type: 'point'}}/>        <Entity gltf-model={{src: 'virtualcity.gltf'}}/>        <Entity text={{value: 'Hello, WebVR!'}}/>      </Scene>    );  }} ReactDOM.render(<VRScene/>, document.querySelector('#sceneContainer'));
Posted by: Guest on November-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language