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:

editor view
but when I run the game the shader doesn't seem to work:

game view
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?
shader_type canvas_item;
uniform vec4 alpha_mask: hint_color;
void fragment(){
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;
}
}