Commit 4c6e77a7 authored by Rahman's avatar Rahman
Browse files

Update index.html

parent 2b1d79c5
Pipeline #9324 passed with stage
in 6 seconds
...@@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re ...@@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
scene.add(reticle); scene.add(reticle);
}) })
let flower; let scene;
loader.load("https://transfer.hft-stuttgart.de/gitlab/22raya1mpg/argumented-reality/-/blob/master/hopper/scene.gltf", function(gltf) { loader.load("https://transfer.hft-stuttgart.de/gitlab/22raya1mpg/argumented-reality/-/blob/master/bee/scene.gltf", function(gltf) {
flower = gltf.scene; scene = gltf.scene;
}); });
session.addEventListener("select", (event) => { session.addEventListener("select", (event) => {
if (flower) { if (scene) {
const clone = flower.clone(); const clone = scene.clone();
clone.position.copy(reticle.position); clone.position.copy(reticle.position);
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