Fixed collisions with walls. Various small changes
Replaced integers with floats in RangeFog.frag. discard is called when alpha is less than 0.01