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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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:
    13
    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,256
    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.