Did a lot of stuff to add animated fog support