showing results for - "threejs cube mesh"
Hugo
24 Aug 2019
1const geometry = new THREE.BoxGeometry( 1, 1, 1 );
2const material = new THREE.MeshBasicMaterial( {color: 0x00ff00} );
3const cube = new THREE.Mesh( geometry, material );
4scene.add( cube );