Revert "fog now distance based instead of depth"

This reverts commit 7ee038fdd7fcb51f901893ae0e6554a2f0cc3dc1.
Removing gamma correction due to caused inconsistencies.