Terrain layers

I wanted to create 3 different materials for a terrain: Dirt, grass and snow.
I tried to do something similar to the example material in the tutorial (in the engine) and this is what I did:

Created each layer with the texture samples

Added specularity for each texture

Added normal maps for each texture

And after the last node on each one of the images above:

I get these 2 errors

Can you show the whole material?

Try using layer blends instead, I’m not to sure what the use case for Layer Weight Nodes

The problem in the top image is that you left the “layer” pin disconnected and only plugged into to “base” pin. All layer pins must be connected.