Search Unity

Any ways to choose certain Post Process effects affect certain layers?

Discussion in 'High Definition Render Pipeline' started by xeon321, Mar 31, 2020.

  1. xeon321

    xeon321

    Joined:
    Nov 10, 2016
    Posts:
    9
    Are there any ways to say, make Bloom only affect the UI layer and not the other layers?
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Hi @xeon321,

    As far as I know it's not possible by default, but you might get something done with custom passes. Check the examples
    to see what you can do with those:

    https://github.com/alelievr/HDRP-Custom-Passes

    Here's the documentation (very good information):
    https://docs.unity3d.com/Packages/c...s.high-definition@7.1/manual/Custom-Pass.html

    I think you could make some sort of selective effect even without writing C#/HLSL shader code by using that DrawRenderersCustom pass, so you could just configure the layer in Custom Pass UI you want the effect rendered to, and then create a Shader Graph which does some effects?
     
  3. gilley033

    gilley033

    Joined:
    Jul 10, 2012
    Posts:
    1,193
    I'm wondering this too. Has anyone done this and can offer a more comprehensive solution?