How to fade to black over distance?

Wow this was fast! Thank you very much. And it’s already almost what I’m looking for, only thing that is not right on the point is that the fade seems to happen in kind of a linear fashion, But I guess I can figure out myself how to make it work in a spherical or circular way, at least if this is possible.
Thanks again for pointing me in the right direction.