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