I created this procedure material in the context of UE4, this material has three main features:
- Material can detect which surface the mesh is intersecting with and blend two materials together to avoid the ‘hard edge’ to some extents;
- The material can also blend with each other pretty well, so duplicated rock mesh can shape to another new rock shape without having a strange texture;
- It also supports vertex painting in order to adjust the texture manually.
This is a short video to show off the main functions: