How to Blend B/W Grass/Dirt like in Torchlight 2?

I also thought about using a mask to harden the transition, although I don’t know if it will be “nice and neat” like in Torchlight