Changed Terrain to use material files