Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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'));
Comment

PREVIOUS NEXT
Code Example
Javascript :: is value in list javascript 
Javascript :: javascript xpath 
Javascript :: js delete all from array 
Javascript :: grouped bar charts in chart js 
Javascript :: javascript find missing number 
Javascript :: freecodecamp cdn 
Javascript :: array.filter in javascript 
Javascript :: basic json syntax 
Javascript :: components should be written as a pure function 
Javascript :: what is the slice method in javascript 
Javascript :: create component in react 
Javascript :: uuid react native expo 
Javascript :: javascript array find case insensitive 
Javascript :: how to add multiple event listener in javascript 
Javascript :: regex for international phone number 
Javascript :: delete node between indexes node list js 
Javascript :: convert text to qr code in angular 
Javascript :: add style by classname javascript 
Javascript :: How to get random no. without math.random() function 
Javascript :: angular2-tree-diagram 
Javascript :: has class in jquery 
Javascript :: diferença entre let e var 
Javascript :: how to add a tilemap in phaser 3 
Javascript :: javscript call 
Javascript :: events in javascript 
Javascript :: linear search javascript 
Javascript :: document.getelementsbyname 
Javascript :: what does connect do in redux 
Javascript :: reverse string 
Javascript :: npm i images=pdf 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =