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

Camera - Don't Clear, how can I achieve the same thing?

Discussion in 'High Definition Render Pipeline' started by SniperED007, Jun 2, 2020.

  1. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    345
    In HDRP they removed the camera option "Don't Clear".

    I want to be able to draw a white sphere on a black background and as it moves it effectively leaves a trail (like a paintbrush). The same way Don't Clear would have functioned.

    How can I achieve this now in HDRP?
     
  2. florianBrn

    florianBrn

    Joined:
    Jul 31, 2019
    Posts:
    53
    Bumping this in hopes someone found a way to achieve this, as I couldn't find anything about that anywhere.
     
  3. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    345
    Think I ended up just rendering to a render texture to achieve the same result
     
  4. florianBrn

    florianBrn

    Joined:
    Jul 31, 2019
    Posts:
    53
    The render texture will be cleared every frame anyway as it is just capturing what the camera is rendering, unless I'm missing something?
     
  5. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Hi, the option is on the camera:

    upload_2021-8-25_18-58-55.png

    Select Background Type : None
     
    SergeiKuznetcov1 and florianBrn like this.