Hi,
I have this simple test where if the distance from the camera is > 2000 the material is green otherwise it’s red, the color is either red or green no blending.
This is the material setup
It works as intended however in some instance where the distance is 2000 give or take you can get this. If I understand correctly the shading is applied per pixel, is there a way to apply the distance calculation once to all pixels ?

Thank you.
