Search Unity

Question How to simulate "Clear Flags" in URP camera for frame accumulation?

Discussion in 'Universal Render Pipeline' started by nicfio, Nov 1, 2022.

  1. nicfio

    nicfio

    Joined:
    Feb 12, 2017
    Posts:
    7
    Hello,

    In the camera component there is the Clear Flag property which allows not to redraw the color buffer of the camera, and instead draw over it and have a "smear like effect".

    I'd like to replicate the same effect on URP, where the Clear Flag is no longer an option:
    how could I proceed? or what should I look into?

    Furthermore, I'd be using the camera to render on a Render Texture, so I could use a custom shader (preferibly using Shadergraph) applied to the texture: is there a way to paint "over" the current texture without replacing the old one?
     
  2. Arenooo

    Arenooo

    Joined:
    Apr 22, 2021
    Posts:
    1
    Hey, did you figure it out?
     
  3. nicfio

    nicfio

    Joined:
    Feb 12, 2017
    Posts:
    7
    Hello, not really, I used some other weird workarounds actually (it's been a bit and I forgot what i did) but didn't find any obvious solution for this! Let me knwo if you find something out!