From c623ffcea3019d3bf505f4730cd19b472ffe1faf Mon Sep 17 00:00:00 2001 From: Rahman <22raya1mpg@hft-stuttgart.de> Date: Sat, 8 Jun 2024 12:08:06 +0000 Subject: [PATCH] Update index.html --- public/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/index.html b/public/index.html index 9c300d0..30d612f 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 man; -loader.load("D:\HFT\2nd semster\CIV", function(gltf) { - man = gltf.scene; +let flower; +loader.load("", function(gltf) { + flower = gltf.scene; }); session.addEventListener("select", (event) => { - if (man) { - const clone = man.clone(); + if (flower) { + const clone = flower.clone(); clone.position.copy(reticle.position); scene.add(clone); } -- GitLab