Creating "edges" around different layers with Terrain Materials?

Never posted on here before so hopefully I have the right spot. But I’ve been looking for a while now for a way to create the following effects.Warcraft-III-World-Editor--Untitled-1-_-1_14_2020-2_00_44-PM.jpg
I wanna have the textures for some things on my terrain have that border/curb/edging effect, but I’m not sure hot to accomplish this in UE4 and was wondering if anyone knew or of if it has been done before.