          // vec3.transformMat4(cursorPos, cursorPos, inputPose.targetRay.transformMatrix);

          scene.inputRenderer.addCursor(cursorPos);
          
          if (inputSource.gripSpace) {
            let gripPose = frame.getPose(inputSource.gripSpace, refSpace);
            if (gripPose) {
              // If we have a grip pose use it to render a mesh showing the
              // position of the controller.
              scene.inputRenderer.addController(gripPose.transform.matrix, inputSource.handed