Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I applied a procedural texture on a cube where I want red to be higher than white. At the picture shown, the top face is correct but the front face is wrong. This is just at simple cube, all normals are facing outward.
Insert a displacement node between the height value and the output.
This displacement node will calculate the direction appropriately considering the given height. Here you need to scale it negatively in order to have white higher than red.
Required, but never shown