Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Is it possible to add custom shader pass in HDRP shader?

Discussion in 'Graphics Experimental Previews' started by jjobby, Feb 4, 2019.

  1. jjobby

    jjobby

    Joined:
    Nov 28, 2009
    Posts:
    161
    HDRP shader has many shader pass with name and tag. I'd like to create a simple fur shader which uses multiple shader pass like in normal rendering pipeline. I've tried that but those shader pass weren't executed. Can it be done in current HDRP?
     
    Chootin likes this.
  2. jjobby

    jjobby

    Joined:
    Nov 28, 2009
    Posts:
    161
    For a better explanation, this is what I want to do. Adding multiple custom pass in subshader.
    I use normal PBR as an example because the code is shorter but the idea is the same. I did this in HDRP shader but those custom shader pass weren't executed. The shader doesn't have any compile error. HDRP shader has already had 10 or more shader pass by default. I just want to ask that can HDRP shader support additional custom pass like this in subshader?