- Home /
Shader graph adds background to my texture
I am making a dissolve effect that works on images, the dissolve works fine but shader graph adds a gray background to my texture, even though it is a png. Any idea why?
Thankyou, the picture provided shows my problem.
I have a similar issue that unwanted backgrounds are added to Main Preview although sprite itself has no background. I imported sprites from Unity Asset store and try to play with it to learn shader graph but I cant find a way to remove auto added background. ( i attached the image to show the problem)
Unity 2020.3.26f
If anyone has a clue to solve it, that'd be very appreciated.
well, I somehow solved it by connectin alpha from sample texture 2d node to alpha in fragment.
Answer by BloodMarked · Jun 21, 2021 at 04:40 PM
you need to multiply the alpha with the alpha from the blend node in the bottom right, to have the effect be transparent.
so a split node, and use the A output to multiply with the blue line that goes into alpha of the master output
Your answer
![](https://koobas.hobune.stream/wayback/20220613012804im_/https://answers.unity.com/themes/thub/images/avi.jpg)