Dissolve shader causing the black part of my image to be transparent?

Godot Version

v4.3.stable.mono.official [77dcf97d8]

Question

So, I’ve got a texture rect under a control node that has an image with black-on-red text:

I just followed a tutorial to create a dissolve shader. This is what that looks like:

However, after I add this shader to my texture rect and add noise, all of the black portion in the above image becomes transparent:

Would anyone be able to help me understand why this is happening? I’m still fairly new to playing around with shaders. Thanks!

It appears that the Mix node connected to the Alpha value takes values from 0 to b, and the weight factor is controlled by the color of the input texture. If this color is black, the weight will be 0, and therefore, the resulting Alpha will be set to 0, making it transparent.

1 Like

Yeah, I just had to fix it by using the alpha as my weight. Thanks!

1 Like