Planet Atmosphere

I made the atmosphere in post process, how to fix that?
1 image - how to make it not visible through objects?
2 image - and save this blue fog effect
3 image - atmosphere material