I tried to render Sprite shadow with the Shader Graph.
But as you can see, the tree is rendered mistakenly before the house.
The tree is rendered before the house
You can see that the tree is actually at the end of these sprites
And here's the Shader Graph that I'm using for my game: Shader Graph
I am totally an amateur in shader and Shader Graph. What's wrong with my shader or is there any way that I could render them correctly?
I tried to set Depth Write to Force Enabled, the occlusion is now correct, but it just hide the UI in Canvas. So I bet it would be a depth buffer problem.