diff --git a/public/1-Cube.html b/public/1-Cube.html index 959609781bef74af70c4a936f7c0613cdd0cf916..ccfff6fb50de76426c29cd513991089c4146c370 100644 --- a/public/1-Cube.html +++ b/public/1-Cube.html @@ -25,16 +25,11 @@ async function activateXR() { // The cube will have a different color on each side. const materials = [ - new THREE.MeshBasicMaterial({color: 0x744700}), - new THREE.MeshBasicMaterial({color: 0x000000}), - new THREE.MeshBasicMaterial({color: 0x000000}), - new THREE.MeshBasicMaterial({color: 0x000000}), - new THREE.MeshBasicMaterial({color: 0x000000}), new THREE.MeshBasicMaterial({color: 0x000000}) ]; // Create the cube and add it to the demo scene. -const cube = new THREE.Mesh(new THREE.BoxBufferGeometry(0.5, 0.5, 0.5), materials); +const cube = new THREE.Mesh(new THREE.ConeGeometry(0.5, 1, 5), materials); cube.position.set(0, 0, -1); scene.add(cube);