Fixed atmosphere distance attentuation.
Commiting torus code.