Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Help! PBR shader Transparent.

Discussion in 'Shaders' started by fiatwiriya, Feb 9, 2021.

  1. fiatwiriya

    fiatwiriya

    Joined:
    Jun 27, 2018
    Posts:
    12
    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.


    1.png 2.png 3.png
     
    Last edited: Feb 9, 2021
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,329