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.

Resolved Custom pass VS Custom post process

Discussion in '2022.2 Beta' started by PaulMDev, Jul 17, 2022.

  1. PaulMDev

    PaulMDev

    Joined:
    Feb 19, 2019
    Posts:
    68
    I've seen the sample for custom passes and custom post process in 2022.2 b.
    But I can't really understand the differences between the two.
    Can anyone explain to me when to use which one ?
     
  2. jiraphatK

    jiraphatK

    Joined:
    Sep 29, 2018
    Posts:
    263
    The first very significant difference is their different injection points during the render loop.
    HDRP-frame-graph-diagram.png

    Green is PP injection point.
    Purple is Custom Pass injection point.

    IMO, custom pass is also more flexible in that it can do more than just full screen effect.

    Which to use depends on your use case. What are you trying to archive?

    Something can be done in both while some can't
     
    PaulMDev likes this.
  3. PaulMDev

    PaulMDev

    Joined:
    Feb 19, 2019
    Posts:
    68
    Wow that's a cool graph !

    Thanks for your explanation. I don't actually need to use them right now, but I understand it a little better.