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.
  2. Dismiss Notice

URP : custom post processing

Discussion in 'Universal Render Pipeline' started by iOwls, Dec 7, 2020.

  1. iOwls

    iOwls

    Joined:
    Jan 3, 2014
    Posts:
    3
    Hello all,
    hope all is well,

    this is a message someone has sent me, who is helping me work on a volumetric shader,
    is his comment valid about the URP?

    "I tried to re-write the Ocean.shader in URP and I managed to make it work, but if I apply it to the custom post processing effects of the camera it doesnt' work. It seems that the custom post processing effect are not supported in URP, so you can't use that post processing with that shader."

    we we're working on converting this ocean shader to the urp.

    [ref: https://github.com/SebLague/Solar-SystemPlanetEffects]
    [ref: https://github.com/SebLague/Solar-S...ial/Shaders/PostProcessing/OceanEffect.shader]
    [ref: https://github.com/SebLague/Solar-S...st Processing/Planet Effects/PlanetEffects.cs]

    would there be a reason why this is not possible?

    [ref:
    ]
     
    Last edited: Dec 7, 2020
  2. weiping-toh

    weiping-toh

    Joined:
    Sep 8, 2015
    Posts:
    186
    iOwls likes this.
  3. nopogo

    nopogo

    Joined:
    Sep 9, 2012
    Posts:
    24

    Sorry to necro this thread. Did you get anywhere converting the shader to URP?
     
  4. funkyCoty

    funkyCoty

    Joined:
    May 22, 2018
    Posts:
    677
    RenderFeatures dont have the blending volume capabilities out of the box that PPv2 had. Is there really no built in custom volume support for post processing in URP? Seems like Unity is really dropping the ball over and over here.
     
  5. weiping-toh

    weiping-toh

    Joined:
    Sep 8, 2015
    Posts:
    186
  6. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    That wasn't the point. Point was that you can't create your own custom PP with URP's built-in postprocessing as it's currently unsupported. Unity has been working on adding support for this but it's not done yet. Only way to do custom screenspace effects with URP today is to use Renderer Features - which cannot be blended by volumes.

    This card on URP productboard is marked as "in progress": https://portal.productboard.com/uni...l-effects/c/37-post-processing-custom-effects
     
  7. funkyCoty

    funkyCoty

    Joined:
    May 22, 2018
    Posts:
    677
    I did find an ok-ish solution.
    • Create your custom Volume, by making a class inheriting from VolumeComponent and implementing IPostProcessComponent.
    • Have a RenderFeature attached to the Renderer for your camera. Your RenderFeature can sample from any data from the already blended volume data. Like this: var settings = VolumeManager.instance.stack.GetComponent<YourCustomVolume>();
    • Using that data, you can do whatever you need inside the RenderFeature.
    It's cumbersome but it's possible. I just wish this was documented fully somewhere.
     
    rz_0lento likes this.