From 71a7729c89d35164d89124a15b71c3f32d31a7c1 Mon Sep 17 00:00:00 2001
From: Kramer <11krlu1mma@hft-stuttgart.de>
Date: Mon, 8 May 2023 17:10:21 +0000
Subject: [PATCH] Update public/index.html

---
 public/index.html | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/public/index.html b/public/index.html
index 1d8210b..223e70a 100644
--- a/public/index.html
+++ b/public/index.html
@@ -53,6 +53,16 @@ renderer.autoClear = false;
 const camera = new THREE.PerspectiveCamera();
 camera.matrixAutoUpdate = false;
 
+// Initialize a WebXR session using "immersive-ar".
+const session = await navigator.xr.requestSession("immersive-ar");
+session.updateRenderState({
+  baseLayer: new XRWebGLLayer(session, gl)
+});
+
+// A 'local' reference space has a native origin that is located
+// near the viewer's position at the time the session was created.
+const referenceSpace = await session.requestReferenceSpace('local');
+
 
 }
 </script>
-- 
GitLab