Trouble using Mix Shader node to make a texture read alpha properly

Hello, I’m having trouble, I am novice when it comes to nodes, I want to have a material that already has a transparent texture also read a different set of nodes, I know how to set-up the texture nodes to make blender read the transparency/alpha, and I was also following a tutorial for “holo glitter” effects, the problem is that I dont know how to make both group of nodes match perfectly

The group of nodes I added

And the group of nodes I already had for the texture

Imgur

The problem is that by setting them up that way, the original texture is no longer transparent as it should be, but the holo glitter effect from the second group of nodes is visible

Example with the holo glitter node group enabled

Imgur

[You can tell where its supposed to be transparent]

My goal is to have the holo glitter effect on top of the texture but without losing any of the transparency/with the alpha not being affected, is there a way to do that?

I’ve been asking for help but the only thing i got told so far was that the holo glitter node group was totally opaque, which is whats causing problems, but i have no clue how to make the group not opaque? I tried linking everything with a transparent node but that doesnt work, again I’m a novice and I haven’t been able to figure this out myself, so I appreciate all the help I can get! Thank you for your time.

If I understand correctly, the trouble is that you’re mixing in the wrong order: as it is at first you say that a pixel can be transparent and THEN you mix it with totally opaque shader with factor 0.5. So your 100% transparent pixels turn into 50% transparent.

In the lower half is a sketch of how to connect it the other way round if that helps

1 Like

Thank you very much for the explanation and the guide sketch, I can see what I did wrong now, I higly appreciate this! I’ve now achieved the desired effect.