From 76e2d4f442fd70ce14bca81302be6fb43e504c95 Mon Sep 17 00:00:00 2001 From: Esguerra Montana <32esla1mpg@hft-stuttgart.de> Date: Sun, 16 Jun 2024 16:07:21 +0000 Subject: [PATCH] Update index.html --- public/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index dac3a32..0525a6e 100644 --- a/public/index.html +++ b/public/index.html @@ -24,10 +24,10 @@ async function activateXR() { const scene = new THREE.Scene(); // Color of the torus geometry. -const material = new THREE.MeshStandardMaterial({ color: 0x238b45, roughness: 0.5, metalness: 0.5 }); +const material = new THREE.MeshPhysicalMaterial({ color: 0x02818a, roughness: 0.5, metalness: 0.5, clearcoat: 1.0, clearcoatRoughness: 0.1 }); // Create the torus and add it to the demo scene. -const torus = new THREE.Mesh( new THREE.TorusKnotGeometry(0.2,0.2,5,4,1,2), material); +const torus = new THREE.Mesh( new THREE.TetrahedronGeometry(1);, material); //position the next geometry (sphere) torus.position.set(0, 0, -1); // Add the mesh to the scene -- GitLab