Commit 9b4e7df7 authored by Rahman's avatar Rahman
Browse files

Update index.html

parent ecffcc91
Pipeline #9304 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 rabbit; let Chair;
loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/rabbit/scene.gltf", function(gltf) { loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/chair/scene.gltf", function(gltf) {
rabbit = gltf.scene; chair = gltf.scene;
}); });
session.addEventListener("select", (event) => { session.addEventListener("select", (event) => {
if (rabbit) { if (chair) {
const clone = rabbit.clone(); const clone = chair.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