Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Extending URP with Additional Subpasses

Discussion in 'Universal Render Pipeline' started by psuong, Feb 6, 2022.

  1. psuong

    psuong

    Joined:
    Jun 11, 2014
    Posts:
    126
    I'd like to extend URP with an additional renderpass/subpass but I'm wondering where I can create the renderpass + subpass such that it's scheduled after the main URP pass.

    I understand that there are renderer features which I can add onto URP, but the issue I'm having especially with renderer features is that my custom screen space UI gets affected by Post Postprocessing in URP (this is testing with the BoatAttack demo which does a final blit to apply post processing which pretty much removes the point of AfterPostProcessing rendering event).

    I might be missing something obvious to make sure that my UI is not affected by post processing but I'm not sure and figure maybe drawing it as a separate renderpass + subpass might be a decent solution. For reference here are some screenshots where my UI is washed out in the BoatAttack demo and what the actual color should look like.


    Snipaste_2022-02-06_09-35-08.png Untitled.png
     
  2. comettailz

    comettailz

    Joined:
    Feb 1, 2022
    Posts:
    14

    Attached Files:

  3. psuong

    psuong

    Joined:
    Jun 11, 2014
    Posts:
    126
    The second screenshot I posted doesn't do justice since it doesn't show my renderer feature settings, but even if you inject the renderer feature to run After Post Processing/After Rendering, it will still be affected by Render Final Post Processing Pass. This is an updated screenshot with my intentions.

    I have some experience with Vulkan so the concept of RenderPass + Subpass isn't too unfamiliar, but I'm still not sure where I'd inject a new RenderPass + Subpass aside from a RenderPipelineAsset.

    renderer-feature+post-processing.png
     
  4. psuong

    psuong

    Joined:
    Jun 11, 2014
    Posts:
    126
    I guess this isn't possible?