Using Material Functions with Landscapes

Guys I did not know there was such a good method!

I tried the weight blended version but the second layer returns a null output. The areas I paint with this layer turns the landscape into black and white checker patterns.
Any help??