"vcm/datasource-data/StuttgartAlternative/data/data1318.b3dm" did not exist on "8985b08fe5a4f90d1399e93d84617f47e7892e05"
Commit 58ecc3f5 authored by Percen's avatar Percen
Browse files

Update public/index.html

parent bae75392
......@@ -51,6 +51,15 @@ renderer.autoClear = false;
// to handle the matrices independently.
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>
......
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