Commit 88832061 authored by Rahman's avatar Rahman
Browse files

Update index.html

parent 9b4e7df7
Pipeline #9307 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 Chair; let man;
loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/chair/scene.gltf", function(gltf) { loader.load("D:\HFT\2nd semster\CIV", function(gltf) {
chair = gltf.scene; man = gltf.scene;
}); });
session.addEventListener("select", (event) => { session.addEventListener("select", (event) => {
if (chair) { if (man) {
const clone = chair.clone(); const clone = man.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