fix for turning animations playing when in vanity mode
Terrain material now uses multiple passes if required, which means it can support an arbitrary number of layers. Also re-enables PSSM.
Merge remote-tracking branch 'scrawl/master'