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

Will custom Image Effect and UI shader need to be upgraded for the new SRPs?

Discussion in 'Graphics Experimental Previews' started by Le_Tai, Apr 28, 2018.

  1. Le_Tai

    Le_Tai

    Joined:
    Jun 20, 2014
    Posts:
    442
    And if they are, how can I do that?
     
  2. Le_Tai

    Le_Tai

    Joined:
    Jun 20, 2014
    Posts:
    442
    OK so I downloaded 2018.1 and it seems that my Image Effect doesn't work at all in the new SRPs - doesn't even show up in the frame debugger. Is a Custom Effect for the new Post Processing Stack is required now?
     
  3. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    I did IE in PPS and it works fine, also remember it has some changes in shader to
     
  4. Le_Tai

    Le_Tai

    Joined:
    Jun 20, 2014
    Posts:
    442
    So from now on all existing Image Effect will break?
     
  5. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    Only in SRP (not in classic pipelines), OnRenderImage not work in SRP (as i think, because it has custom render logic).
    But i think we can work outside PPS with CommandBuffer directly, because in PPS context we work with same CommandBuffer, for example you can use Blit from CommandBuffer in LateUpdate with Graphics.ExecuteCommandBuffer method.
    Correct me if I was wrong somewhere.
     
    Last edited: May 5, 2018
  6. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723