Commit 03021043 authored by Percen's avatar Percen
Browse files

Merge branch '21pesi1bif-master-patch-83007' into 'master'

Update public/index.html

See merge request !9
1 merge request!9Update public/index.html
Pipeline #10466 passed with stage
in 5 seconds
Showing with 10 additions and 0 deletions
+10 -0
......@@ -96,6 +96,16 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/sunflower/
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.
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