How to use a greyscale to blend landscape layers

I have a landscape and a mask map to detemine which layer of the material that I wish to use. For example, I have a mountain that has erosions, and I have a mask map where the erosion parts are red,and others are black. My question is is there a way to read this mask map to automatically paint the landscape in ue4