How to creat Layered Materials by Material Function?

Here is my blueprint, I blend three materials, but one is always covering others.
And another question, I copy my materials node to a new Materials Funtion, I find that the Tessellation out of work (Just like the screenshot).

Can someone help me?I don’t know how to slove it. (☍﹏⁰)