Commit 0a020738 authored by Percen's avatar Percen
Browse files

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

Update public/index.html

See merge request !4
parents bae75392 58ecc3f5
Pipeline #10452 passed with stage
in 7 seconds
Showing with 9 additions and 0 deletions
+9 -0
...@@ -51,6 +51,15 @@ renderer.autoClear = false; ...@@ -51,6 +51,15 @@ renderer.autoClear = false;
// to handle the matrices independently. // to handle the matrices independently.
const camera = new THREE.PerspectiveCamera(); const camera = new THREE.PerspectiveCamera();
camera.matrixAutoUpdate = false; 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> </script>
......
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