Make it on TD.
Sample codes of atmosphere scattering based on the article in GPU Gems2 : https://developer.nvidia.com/gpugems/GPUGems2/gpugems2_chapter16.html