Keep line renderer width same on screen no matter camera distance

So I am displaying a solar system in a scene. The star is in the middle and planets at different distances around it. I have a line renderer component on each planet that creates a circular line around the star to the distance of the planets. I have the line width set so that it looks right when I am zoomed in to the planet. However when I zoom out to view the whole system, the lines are too thin and seem jagged.

Does anyone know a trick to scale the line renderer’s width equally to the camera’s distance?

Thank you very much AlwaysSunny!

It turned out that this simple script worked just fine:

Vector3.Distance(planetPosition, cameraPosition) / 1000;

Still thanks for the input.