From 8a8b82a9240b3ac9c7116b7640a38e3d3bd57486 Mon Sep 17 00:00:00 2001
From: Esguerra Montana <32esla1mpg@hft-stuttgart.de>
Date: Mon, 17 Jun 2024 16:56:23 +0000
Subject: [PATCH] Update index.html

---
 public/index.html | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/public/index.html b/public/index.html
index dc72ff6..ec5b8e9 100644
--- a/public/index.html
+++ b/public/index.html
@@ -64,20 +64,21 @@ const hitTestSource = await session.requestHitTestSource({ space: viewerSpace })
 
 const loader = new THREE.GLTFLoader();
 let reticle;
-loader.load("./reticle/reticle.gltf", function(gltf) {
+loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/reticle.gltf", function(gltf) {
   reticle = gltf.scene;
   reticle.visible = false;
   scene.add(reticle);
 })
 
-let flower;
+let chair;
 loader.load("./sunflower/sunflower.gltf", function(gltf) {
-  flower = gltf.scene;
+  chair = gltf.scene;
+  chair.scale.set(0.5, 0.5, 0.5); // Adjust the scale as needed
 });
 
 session.addEventListener("select", (event) => {
-  if (flower) {
-    const clone = flower.clone();
+  if (chair) {
+    const clone = chair.clone();
     clone.position.copy(reticle.position);
     scene.add(clone);
   }
@@ -123,6 +124,8 @@ const onXRFrame = (time, frame) => {
 session.requestAnimationFrame(onXRFrame);
 
 
+
+
 }
 </script>
 </body>
-- 
GitLab