Commit 181fea17 authored by Kramer's avatar Kramer
Browse files

Merge branch '11krlu1mma-master-patch-19849' into 'master'

Update public/index.html

See merge request !4
parents 2c6942b5 71a7729c
Pipeline #7455 passed with stage
in 6 seconds
......@@ -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>
......
Markdown is supported
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