nding(session, gl);
        } else {
            let gllayer = new XRWebGLLayer(session, gl);
            gllayer.fixedFoveation = 1.0;
            session.updateRenderState({ baseLayer: gllayer });
        }

        session.requestReferenceSpace('local').then((refSpace) => {
          xrRefSpace = refSpace;

          if (useLayer) {
            proj_layer = xrGLFactory.createProjectionLayer({ stencil: false });
            proj_layer.fixedFoveation = 1;
            session.updateRenderState({ layers: [pr