Search Unity

Question Is it possible to create a transparent material that visually blocks itself? (see pics)

Discussion in 'Shader Graph' started by turboturboturbo, Jun 10, 2021.

  1. turboturboturbo

    turboturboturbo

    Joined:
    Dec 2, 2018
    Posts:
    25
    I am trying to create a transparent material that can "hide" itself. I will ask this question using images:

    Firstly, here is the non-transparent version.
    zzzzzzz.PNG

    Now we make it transparent. But... it looks strange! The object IN FRONT of the glowing object should be obstructing it visually, but it is not - 100% of the glowing object is visible :(

    www.PNG

    This glowing area should not be visible - as there is another object of the same material in front of it.
    Inkedwww_LIzz.jpg

    Is it possible for the Shader Graph to do this?

    Thank you!
     
    Last edited: Jun 10, 2021