Here I've got a shader that compares the height of all the points of an object to the player's height. Yes, taking B and multiplying by -1 is the intended behavior.
But the shader simply refuses to work. I've tested all the variables thoroughly. The object being compared is an object space of a line renderer whose points I can verify in the inspector. I am also debug logging the playerY variable being fed to it. (also checking the exposed playerY property of the shader)
I can verify that some of the points on the renderer are higher and some are lower than the player, hence some should be color 1 and some should be color 2 but they aren't. They are always the same color.
Why aren't they? The shader setup looks fine to me.
Yes, the renderer is in object space. Yes, it's askew by 90 degrees cause there's no "transform y" alignment option, hence getting the z.
Can anybody spot anything?