Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to set up a camera so that it doesn't clear the color buffer?

Discussion in 'Universal Render Pipeline' started by pateman, Feb 29, 2020.

  1. ContxtualDempsey

    ContxtualDempsey

    Joined:
    Mar 7, 2022
    Posts:
    3
    Solved:
    Ended up making a second shader to blend 2 textures with a Graphics.Blit and use Graphics.CopyTexture back to the source texture of the blend shader to feed back on it self producing the same effect.
     
  2. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,641
    this bug is still valid for us on PC too
     
  3. Prince_of_Persia

    Prince_of_Persia

    Joined:
    Oct 20, 2012
    Posts:
    56
    Shaunyowns

    Any updates?
    I still experience the issue on Unity 2022.2 Beta. We just need the camera not to clear buffers. Which we have in built-in Render Pipeline. Workarounds such as copying and duplicating the color texture is not the ideal solution as it has an overhead that can not be neglected. Not clearing the buffer makes it easy and performant.
     
    Fimiam likes this.
  4. francois_unity732

    francois_unity732

    Joined:
    Feb 15, 2023
    Posts:
    1
    Same here. "Don't clear" gave us CRUCIAL a performance boost on Android as we are using an 8k square texture (yes, it's needed for our application don't ask), as we rendered only a small part of a render texture every frame. Will look into doing something like blits but not sure this can actually work.

    Any chance we can just have what the built-in pipeline provided?