From 4f4a3ffe2bff754685148d47da6dc4a5fe9f2830 Mon Sep 17 00:00:00 2001 From: Thapa <luxthapa6363@gmail.com> Date: Mon, 19 Jun 2023 12:05:35 +0000 Subject: [PATCH] Update index.html --- public/index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/public/index.html b/public/index.html index 06f5fd1..40272b6 100644 --- a/public/index.html +++ b/public/index.html @@ -26,18 +26,19 @@ async function activateXR() { // The cube will have a different color on each side. const materials = [ new THREE.MeshNormalMaterial({color: 0xff0000}), - new THREE.MeshNormalMaterial({color: 0xff0000}), - new THREE.MeshNormalMaterial({color: 0xff0000}), - new THREE.MeshNormalMaterial({color: 0xff0000}), - new THREE.MeshNormalMaterial({color: 0xff0000}), + new THREE.MeshNormalMaterial({color: 0x0000ff}), + new THREE.MeshNormalMaterial({color: 0x00ff00}), + new THREE.MeshNormalMaterial({color: 0xff00ff}), + new THREE.MeshNormalMaterial({color: 0x00ffff}), new THREE.MeshNormalMaterial({color: 0xffff00}) ]; // Create the cube and add it to the demo scene. -const cube = new THREE.Mesh(new THREE.SphereGeometry(0.2, 0.2, 0.2), materials); +const cube = new THREE.Mesh(new THREE.BoxBufferGeometry(0.2, 0.2, 0.2), materials); cube.position.set(1, 1, 1); scene.add(cube); + // Set up the WebGLRenderer, which handles rendering to the session's base layer. const renderer = new THREE.WebGLRenderer({ alpha: true, -- GitLab