Hi All, pretty new to shaders but I want to remove a particular color from some icons. In the editor the code works and I have this:
but when I run the game the shader doesn't seem to work:
I've used the color picker tool to select the right color which is 0x075f00, I've checked in gimp and it's the same value. Is godot doing something to change the pixel values in game?
uniform vec4 alpha_mask: hint_color;
COLOR = texture(TEXTURE, UV); //read from texture
if(vec3(COLOR.r, COLOR.g, COLOR.b) == vec3(alpha_mask.r, alpha_mask.g, alpha_mask.b))
COLOR.a = 0.0;