Commit 62100d91 authored by Percen's avatar Percen
Browse files

Update public/index.html

parent b95624cb
...@@ -96,6 +96,16 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/sunflower/ ...@@ -96,6 +96,16 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/sunflower/
flower = gltf.scene; flower = gltf.scene;
}); });
session.addEventListener("select", (event) => {
if (flower) {
const clone = flower.clone();
clone.position.copy(reticle.position);
scene.add(clone);
}
});
// Create a render loop that allows us to draw on the AR view. // Create a render loop that allows us to draw on the AR view.
const onXRFrame = (time, frame) => { const onXRFrame = (time, frame) => {
......
Supports Markdown
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