Different Behavior on Different Faces With Procedural Texturing
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.