How to fade to black over distance?

Hi, thanks Roel for the material, MrBlank did you manage to modify it to work in a spherical way? wanting to have it behave that way but not sure how to make it…

cheers,