Multi-pass terrain

Terrain material now uses multiple passes if required, which means it can support an arbitrary number of layers. Also re-enables PSSM.