Fix top-of-atmosphere calculation
Fix atmosphere ray intersection behind the view