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

Where are "ClearFlags" and / or "ClearDepth" on an HDRP camera?

Discussion in 'Graphics Experimental Previews' started by OfficialHermie, Jul 28, 2019.

  1. OfficialHermie

    OfficialHermie

    Joined:
    Oct 12, 2012
    Posts:
    585
    I just don't see the two options "ClearFlags" and "ClearDepth" anywhere on a camera in an HDRP project.
    I'm using HDRP 5.16.1.

    I've also checked "Custom Frame Settings". I don't see them anywhere.

    Can anybody help?

    Thank you!
     
    FlightOfOne, shahan and chortaingseng like this.
  2. iamarugin

    iamarugin

    Joined:
    Dec 17, 2014
    Posts:
    863
    It was renamed to "Background Type" on camera. The ClearDepth flag was removed, because it is not supported in HDRP.
     
    shahan likes this.
  3. tangwilliam

    tangwilliam

    Joined:
    May 4, 2016
    Posts:
    22
    No. This is Wrong answer.

    • Backgrouand Type None: The Camera doesn't clear the screen and the color buffer is left uninitialized. In this case, there are no guarantees on what the contents of the buffer are when you start drawing. It could be content from the previous frame or content from another camera. Because of this, use this option with caution.
     
  4. iamarugin

    iamarugin

    Joined:
    Dec 17, 2014
    Posts:
    863
    So? Where I was wrong?