From 36029cd7432fba0df011351db0f6c33121e45be5 Mon Sep 17 00:00:00 2001 From: Alfakhori <muhammad.alfakhori@hft-stuttgart.de> Date: Wed, 3 May 2023 07:27:19 +0000 Subject: [PATCH] Update public/webXR.html --- public/webXR.html | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/public/webXR.html b/public/webXR.html index 0bd50b3..4e5da0e 100644 --- a/public/webXR.html +++ b/public/webXR.html @@ -4,7 +4,7 @@ <meta charset="UTF-8"> <meta name="viewport" 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 --> <script src="https://unpkg.com/three@0.126.0/build/three.js"></script> @@ -21,11 +21,7 @@ async function activateXR() { document.body.appendChild(canvas); const gl = canvas.getContext("webgl", {xrCompatible: true}); - // To be continued in upcoming steps. -} -</script> - -const scene = new THREE.Scene(); + const scene = new THREE.Scene(); // The cube will have a different color on each side. const materials = [ @@ -96,8 +92,7 @@ const onXRFrame = (time, frame) => { } session.requestAnimationFrame(onXRFrame); - - - +} +</script> </body> </html> -- GitLab