Commit 36029cd7 authored by Alfakhori's avatar Alfakhori
Browse files

Update public/webXR.html

parent 3674c50e
No related merge requests found
Pipeline #7392 passed with stage
in 7 seconds
Showing with 4 additions and 9 deletions
+4 -9
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" <meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Hello WebXR 2.0</title> <title>Hello WebXR! 3.0</title>
<!-- three.js --> <!-- three.js -->
<script src="https://unpkg.com/three@0.126.0/build/three.js"></script> <script src="https://unpkg.com/three@0.126.0/build/three.js"></script>
...@@ -21,11 +21,7 @@ async function activateXR() { ...@@ -21,11 +21,7 @@ async function activateXR() {
document.body.appendChild(canvas); document.body.appendChild(canvas);
const gl = canvas.getContext("webgl", {xrCompatible: true}); const gl = canvas.getContext("webgl", {xrCompatible: true});
// To be continued in upcoming steps. const scene = new THREE.Scene();
}
</script>
const scene = new THREE.Scene();
// The cube will have a different color on each side. // The cube will have a different color on each side.
const materials = [ const materials = [
...@@ -96,8 +92,7 @@ const onXRFrame = (time, frame) => { ...@@ -96,8 +92,7 @@ const onXRFrame = (time, frame) => {
} }
session.requestAnimationFrame(onXRFrame); session.requestAnimationFrame(onXRFrame);
}
</script>
</body> </body>
</html> </html>
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