
      // with the XRDisplay we're presenting to.
      gl = createWebGLContext({
        xrCompatible: true
      });

      // Create a renderer with that GL context (this is just for the samples
      // framework and has nothing to do with WebXR specifically.)
      renderer = new Renderer(gl);

      initHands();

      // Set the scene's renderer, which creates the necessary GPU resources.
      scene.setRenderer(renderer);

      // Use the new WebGL context to create a XRWebGLLayer and set it as the