I want to put a sprite over other using shader graph, like in this tutorial. But after I do the spritesheet, the emission map, create the shader graph and the related material, add the Texture 2D in the blackboard and the _MainTex reference, finally put the texture that I want to use, and this happens: Shader graph editor.
I really do not know what am I doing wrong, and in the game my character looks like: Scene view.
Even though the background is transparent and is sliced in the sprite editor: Sprite editor.
I do not know if is beacuse I'm using the most recent version of shader graph (in the tutorial they use a different one), or probably I'm doing something wrong, or else. I trully don't know, I'm new with all of the shaders and stuff, please, anyone have some idea of what is going on?
I would assume the problem is that you're using an opaque shader.
Go into: Graph Inspector > Graph Settings > Universal
And set the Surface to Transparent.
You may also want to feed the Alpha from the Sample Texture 2D into the Fragment's Alpha.