How do I create layered materials?

World Aligned Blend function in material editor is what you are looking for. Check this tutorial to see how it is used: