I’m looking for something that will color a mesh depending on the height of each spot on the mesh, a “topo map” kind of thing. I am NOT looking for something to produce an actual 2D topo map from a mesh, but something to color the mesh in 3D.
I am not shader-savvy enough to figure out the exact code, but it seems like in the pixel shader I need to get the world Y of that point and derive the color from that. Am I on the right track? How do I get that Y value?
Or is there some other/better way? Thanks a ton!