Terrain shader

How to make a terrain shader with some 5 textures containing normal and specular maps ?
My problem is how to blend two textures on the shader editor to be able later to paint on terrain the textures blending automatically.

Google is your friend:

https://www.google.co.uk/search?q=landscape+layer+blends&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=fflb&gfe_rd=cr&ei=lsnOU9W-EcPX8ge7hIHYAw