Commit 1649d62c authored by Tsymbal's avatar Tsymbal
Browse files

Update public/hitplace.html

parent 7ff322b2
Pipeline #7925 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 duck;
loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/sunflower/sunflower.gltf", function(gltf) { loader.load("https://transfer.hft-stuttgart.de/pages/darynatsymbal16/civ_tsymbal/duck.glb", function(gltf) {
flower = gltf.scene; duck = gltf.scene;
}); });
session.addEventListener("select", (event) => { session.addEventListener("select", (event) => {
if (flower) { if (duck) {
const clone = flower.clone(); const clone = duck.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