Help! PBR shader Transparent.

Hi I have a bit problem with transparent.

-The object in the front can see through the object from behind at some angle even alpha is set to 1( it’s suppose to be like 2 picture)
-The main thing is I try to make texture fade away base on world position. So the farther away the lower the alpha.

  • Both objects share the same material
  • I use URP. Uniy 2020.1.12f1

Not sure what I did wrong. Thank you so much for any helps.

You did nothing wrong. Correct and efficient sorting of real-time transparency is an unsolved problem.

There are some tricks to make this better, but literally none of those options exist for the URP when using Shader Graph. Your “best” option is to use dither opacity instead of real transparency.