I have a pixel that have a colour RGB. This color is calculated by the shader and can be anything.
How can I override this color by a colour I choose. If my pixel is white it's simple, I can do this:
half3 original = half3(1, 1, 1);
half3 mycolor = half3(1, 0, 0);
half3 result = original * mycolor;
But what can I do if:
half3 original = half3(0.36, 0.74, 0.18);
half3 mycolor = half3(1, 0, 0);
half3 result = ?;
What operation or function should I apply to my original pixel color to override it ?