Hello I'm trying to apply a "Stamp texture" to a label to make it look like a stamp.
I manage to apply the texture but it seems it doesn't just apply it to my label.
I observe that for similar letters I have the exact same pattern (see the letter "C" or "E" on my second screenshot), so it seems that the texture isn't applied to my label but to the font sheet.
My shader code is the following:
shader_type canvas_item;
uniform sampler2D alpha_texture;
void fragment() {
if (COLOR.a != 0.){
COLOR = vec4(COLOR.r, COLOR.g, COLOR.b, 1.- texture(alpha_texture, UV).x - 0.2) ;
}
}
Image 1 is my label without the shader applied
Image 2 is my label with the shader applied
Image 3 is the texture that I want to apply
Thank you in advance