I am trying to get an image texture with an opacity map to appear over another texture, but I am having some trouble getting the base material to show under the texture I am attempting to apply.
I am trying to get some leaves to show a roof texture under them, and only have that show up in specific areas that I am painting in texture paint. So far, I am able to get the painting portion working, but the leaf texture is replacing my roof texture instead of overlaying it. I am pretty sure this is because of the way that I am mixing the shaders.
Here is my current setup of nodes:
I am not sure what I should be doing with the opacity map from the leaf texture, I have tried feeding that into a "Transparent BSDF" node which then feeds into a "Mix Shader" node, but what I get is the transparency showing the HDR reflections instead of the roof material below.
I am pretty sure my issue is here with this "Mix Shader" node, but I am not sure what to replace it with:
If cut the line from the bottom shader (the leaves) I am left with a big black splotch:
Is there a way to overlay rather than mix shaders? I feel like this would fix the issue, but I could only find overlaying for RGB.