Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Shadergraph, will adding stencils always incurr an extra pass?

Discussion in 'Universal Render Pipeline' started by tomekkie2, Apr 16, 2021.

  1. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    972
    Suppose I need to use stencils.

    So I can do it in URP by editing Lit, SimpleLit or other URP standard shader and adding Stencil directives into the SubShader block.

    I could also use any arbitrary material, possibly ShaderGraph and add RenderObjects with a stencil override to render pipeline.

    But the second method will always incurr extra shader passes, while the first will not.
    Am I right?