Transparent Shader 'rendering over self'

Hi, in Unity, I have began to teach myself how to begin using shaders and shader graphs. I have created a tree model using two planes and a cylinder. I have made the blank parts of the tree leaf sprites transparent using a transparency map, and it is working fine. However, when you look at the tree at a specific angle, it’s transparent part’s ‘render over’ the rest of the tree as shown in the image below. I have attached my shader graph settings to this post. If you could leave a reply, I will be most grateful.
image

(The part circled in red handles the transparency map)

Since you use alpha clip, you can put the surface type at opaque. This should fix this issue. Otherwise you might need to play around with the depth test.

Thanks for your response. I changed the surface type to opaque, but that removes the transparency of the planes as shown in the image below.
image

Did you check alpha clip again?

The tree still looks like that whether alpha clipping is on or off.

Your Alpha Clip Threshold is 0. Set it to a different value, like 0.5.

2 Likes

That fixed it. Thanks.