The opposite of mix in GLSL: pass in a min/max/actual value and recieve a range value describing how far the actual is between min and max.