Search Unity

Question URP 14 Full Screen Pass -- can we use volumes with these?

Discussion in 'Universal Render Pipeline' started by chemicalcrux, Mar 19, 2023.

  1. chemicalcrux

    chemicalcrux

    Joined:
    Mar 16, 2017
    Posts:
    720
    URP 14 added a nice render feature for doing full screen passes. However, I don't see any way to integrate this with the Volume framework.

    In my case, I want to control the intensity of my fog effect with volumes.

    Before 14, I used this guide to do volume-based post processing, and I can definitely do it again -- but it'd be nice if I didn't have to write all of that stuff :)
     
  2. chemicalcrux

    chemicalcrux

    Joined:
    Mar 16, 2017
    Posts:
    720
    I wound up creating the following things:
    • A custom volume component
    • An instance of the full screen pass renderer feature
    • A singleton behaviour that looks at
      VolumeManager.instance.stack
      and uses that information to set values on the material the full screen pass is using
    That worked very well!
     
    DevDunk likes this.
  3. PFosterSumo

    PFosterSumo

    Joined:
    Jan 21, 2022
    Posts:
    3
    @chemicalcrux Could you please provide an example of how you got a FullScreenPassRendererFeature to work with Volumes? Thank you.