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