Commit 7a194b22 authored by Yaemyim's avatar Yaemyim
Browse files

Update 2-Hit.html

parent 6380e8b7
Pipeline #8217 passed with stage
in 5 seconds
...@@ -71,7 +71,7 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re ...@@ -71,7 +71,7 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
}) })
let flower; let flower;
loader.load("https://transfer.hft-stuttgart.de/gitlab/22yasa1mpg/webarsr/-/raw/master/3d/magaphone.gltf", function(gltf) { loader.load("https://transfer.hft-stuttgart.de/gitlab/22yasa1mpg/webarsr/-/raw/master/3d/bmw.gltf", function(gltf) {
flower = gltf.scene; flower = gltf.scene;
}); });
...@@ -80,8 +80,8 @@ session.addEventListener("select", (event) => { ...@@ -80,8 +80,8 @@ session.addEventListener("select", (event) => {
const clone = flower.clone(); const clone = flower.clone();
clone.position.copy(reticle.position); clone.position.copy(reticle.position);
// Set the desired scale for the icon. // Set the desired scale for the icon.
// const iconScale = 0.005; // Adjust the scale value as needed const iconScale = 0.005; // Adjust the scale value as needed
// clone.scale.set(iconScale, iconScale, iconScale); clone.scale.set(iconScale, iconScale, iconScale);
scene.add(clone); scene.add(clone);
} }
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment