From c2d3ddbdbd288cb56b79728757b14806fc86016c Mon Sep 17 00:00:00 2001 From: Esguerra Montana <32esla1mpg@hft-stuttgart.de> Date: Sun, 9 Jun 2024 18:38:50 +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 672f8c2..21aae78 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.MeshBasicMaterial({color: 0xff0000}); +const material = new THREE.PointsMaterial({ color: 0x7a0177, size: 0.1 }); // Create the torus and add it to the demo scene. -const torus = new THREE.Mesh( new THREE.TorusKnotGeometry(0.3, 0.2, 64, 8, 2, 3), material); +const torus = new THREE.Mesh( new THREE.TorusKnotGeometry(0.3, 0.2, 32, 6, 2, 3), material); //position the next geometry (sphere) torus.position.set(0, 0, -1); // Add the mesh to the scene -- GitLab