in pixel shaders at the moment I use the following way to check if two colors are equal:
if (color1.r == color2.r && color1.g == color2.g && color1.b == color2.b)
I wonder if there is a simple way, something like:
if (color1 == color2)
if (color1.rgb == color2.rgb)
Am I asking too much?