From fc3022490843dce1f2caed714b05251c4112fe69 Mon Sep 17 00:00:00 2001 From: Rafiei <32rafa1mpg@hft-stuttgart.de> Date: Wed, 19 Jun 2024 15:10:54 +0000 Subject: [PATCH] Update index.html --- public/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 78e3807..66a7cff 100644 --- a/public/index.html +++ b/public/index.html @@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re scene.add(reticle); }) -let flower; +let dog; loader.load("https://vazxmixjsiawhamofees.supabase.co/storage/v1/object/public/models/dog/model.gltf", function(gltf) { - flower = gltf.scene; + dog = gltf.scene; }); session.addEventListener("select", (event) => { - if (flower) { - const clone = flower.clone(); + if (dog) { + const clone = dog.clone(); clone.position.copy(reticle.position); scene.add(clone); } -- GitLab