Search Unity

Question Help with self occluding transparent shader

Discussion in 'Shader Graph' started by rcazzy, May 26, 2019.

  1. rcazzy

    rcazzy

    Joined:
    Jun 7, 2014
    Posts:
    14
    Hello,

    I'm attempting to work out how to make a self occluding transparent shader and was wondering if it was possible within shader graph?

    The best visual example I have is of the Oculus Avatar shader on the hands in the attached picture.

    Any help, or advice with regards to making a similar shader would be greatly appreciated. Thank you!

     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    Not possible with Shader Graph unfortunately. This requires a multi-pass shader, or possible two materials with one writing to Z and not color, neither of which are possible with Shader Graph. Multi-pass shaders aren’t currently possible in SRPs in general.
     
    rcazzy likes this.
  3. huwb

    huwb

    Joined:
    Oct 19, 2013
    Posts:
    24
    rcazzy likes this.