Oops, I've just noticed that it works, but not quite good enough yet. :roll: When the observer is too far away from the sphere, the glow is too big, but when it's too close, the glow is too small! Here are the screenshots.
Screen #1 - far from the planet
Screen #2 - close to the planet
What do you think about it?