Apply 2 texture depending on height

i have a pole 3d model and I would like the half lower part of it brown and the higher part white. How can I create a material which paints my pole depending on height?

Thanks all!

I have solved! I followed this guide Stylized Rendering Landscape | Unreal Engine Documentation