Material Layer Change per Terrain Slope

Also check out short tutorial: