Layered Materials, Vertex Paint and HeightLERP

Hi guys!
I had a question while learning how to create layered materials using HeightLERP.

The fact is that I have a lot of textures from other resources than Quixel, and I would like to create multi-materials with them, so blending with Bridge is not suitable for me. I realized that my version is the node editor of materials and HeightLERP.

I looked at all the lessons that I could find on this topic, but even if it’s possible to make a multilayer material using nodes, including height maps, then only two materials are mixed in all the videos.

In the studio where I work, they use their own render engine and working with VertexPaint makes it possible to mix as many as 4 materials (black (base material), red, blue, green). Question: How can I achieve this amount of materials in UE5? And so that it all works with height maps (HeightLERP).

The closest I came to success was in this video tutorial:

There, the speaker, with the help of multiple mixing, has the ability to mix stone wall, concrete and grass. But I couldn’t repeat it, because in the fifth version of anril there is no longer the WorldDisplacement parameter in the BreakMaterialAttributes node, where it plays an important role.

Please tell me the solution to my problem, no matter how: a tutorial (great, I welcome if I can learn it step by step), another tool for blending materials, a sample material with customized parameters.

Thank you in advance for your attention, I will be happy to answer questions!