amera = renderer.vr.enabled ? renderer.vr.getCamera(camera).cameras[0] : camera;
        vrCamera.matrixWorld.decompose(localVector, localQuaternion, localVector2);
        for (let i = 0; i < planeMeshes.length; i++) {
          const planeMesh = planeMeshes[i];
          const factor = Math.min(Math.max(planeMesh.position.distanceTo(localVector), 0), 3)/3;
          const scaleFactor = 1 - factor;
          if (scaleFactor > 0) {
            planeMesh.scale.set(scaleFactor, scaleFactor, scaleFactor);
    