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