When in space, it makes sense to draw atmospheres first and rings second as the rings will be in front of the atmospheres.
When going near the surface of a planet, this order changes because the rings are now behind the atmosphere.
The issue was that the rings of distant planets would also be rendered after their atmosphere, which is not correct and can be visible when looking at a planet from one of its moons.
This PR fixes the issue by only changing the rendering order for the nearest body, not for the more distant ones.
When in space, it makes sense to draw atmospheres first and rings second as the rings will be in front of the atmospheres.
When going near the surface of a planet, this order changes because the rings are now behind the atmosphere.
The issue was that the rings of distant planets would also be rendered after their atmosphere, which is not correct and can be visible when looking at a planet from one of its moons.
This PR fixes the issue by only changing the rendering order for the nearest body, not for the more distant ones.