This commit is contained in:
parent
2bb2c6ce17
commit
73610c52dd
2
main.js
2
main.js
@ -8,7 +8,7 @@ const renderer = new THREE.WebGLRenderer();
|
||||
renderer.setSize( window.innerWidth, window.innerHeight );
|
||||
document.body.appendChild( renderer.domElement );
|
||||
|
||||
const geometry = new THREE.BoxGeometry( 1, 1, 1 );
|
||||
const geometry = new THREE.BoxGeometry( 1, 2, 1 );
|
||||
const material = new THREE.MeshBasicMaterial( { color: 0x33ff00 } );
|
||||
const cube = new THREE.Mesh( geometry, material );
|
||||
scene.add( cube );
|
||||
|
Loading…
Reference in New Issue
Block a user