How do I colour a 3D terrain based on the height? Say, bottom green, and gradually to brown in the middle and white at the top.
When I use colour ramp node, I can see gradient colour across the 3d terrain along x-y plane, but I'd like to have the gradient upwards, in x-z, y-z plane.
Currently, my setup is using cycles and nodes like this:
Color ramp (c) -> (c) Diffuse BSDF (BSDF) -> (Surface) Material output