Material Layer Change per Terrain Slope

You can use a WorldALignedTexture node to have your rock texture mapped sideways.