Commit c675ef82 authored by Esguerra Montana's avatar Esguerra Montana
Browse files

Update index.html

parent 6af52c74
Pipeline #9470 passed with stage
in 26 seconds
......@@ -15,6 +15,7 @@
<button onclick="activateXR()">Start Hit to Place Demo</button>
<script>
async function activateXR() {
try {
const canvas = document.createElement("canvas");
document.body.appendChild(canvas);
const gl = canvas.getContext("webgl", {xrCompatible: true});
......@@ -102,6 +103,9 @@ async function activateXR() {
}
};
session.requestAnimationFrame(onXRFrame);
} catch (error) {
console.error("Error in activateXR:", error);
}
}
</script>
</body>
......
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