Hello all,
I’m trying to create an outline glow shader my 2d sprites.
The sprite’s I’m using have a transparent background… but for some reason the sprite gets some background artifact added to it and I can’t figure out why…
I’m using:
- Unity - 2021.3.16f1
- Universal RP - 12.1.8
- Shader graph - 12.1.8
Original sprite:

Sprite with my shader…
Other full example:
I hope someone knows some things I can try, and thanks in advance!
Edit: added another image, added versions
Set the import settings compression to High Quality or None and see if that fixes the issue.
But also, you’re Stepping the value by 0… So you’re going to lose all the gradient values of that alpha.
Didn’t help
but it’s so wierd, even when I only put a sample texture 2D its already like that…
That’s why I mentioned the stepping value in your shader. I think your math with the nodes there might be off a bit…
It doesn’t look like you’re actually using your alpha? Often your image editor will extend colors behind transparent areas with adjacent colors to reduce image size (the weird blobby triangles/squares).