Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Possible to achieve with shaders?

Discussion in 'Shaders' started by JustinRS, Jun 5, 2014.

  1. JustinRS

    JustinRS

    Joined:
    May 13, 2014
    Posts:
    3
    Pardon my ignorance, I am new to this world.

    I would like to make a shader that would render an object transparently, however, the object will not render overlap with itself. Take, for example, an object such as a donut. When viewing it from the side where you cannot see it's hole, if it is transparent, you would normally see 4 layers of transparency (frontmost layer, layer for the hole, another layer for the hole, then the outermost layer). I wish to have a shader that, in that case, only renders the front most layer (1). Is this possible? if so, are there any well documented techniques to achieve this?
     
  2. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    There was a recent thread dealing with this issue that has a pretty good explanation.
     
  3. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
  4. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355