Fixed binding not working correctly when changing active texture
Cleaned up movement code
Reworked fog to work on transparent objects correctly and improved performance