Increase sphere segments based on distance from camera

So there’s no way to do this without importing 2 billion polygon spheres from an external software? Are you sure about that? Spheres are a pretty simple (and possibly procedural) shape.