Material linear gradient

Hello everybody,
I just wanted to know if it’s possible to blend between two materials in a linear gradient.
For example the facade of a building starts with a dark red color on the ground floor and ends on top level with a shiny red color.

I hope you can help me.

Thanks a lot

You can use the various Position nodes to have a material change base on position (like height).

Can you post an example pls?