Search Unity

Question Why is white not white in Screen Space Camera UI?

Discussion in 'High Definition Render Pipeline' started by tafkams, Sep 14, 2022.

  1. tafkams

    tafkams

    Joined:
    Oct 5, 2021
    Posts:
    46
    Consider the following example scene where there is no light, no Volume or else. The only object is twice the exact same canvas with a white (255,255,255) image covering half of the screen, one time set to Screen Space Overlay, the other time to Screen Space camera.

    Why is the screen space camera UI rendering in a grayish tone and how can I fix that?



     
    Last edited: Sep 14, 2022
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,028
    What component is the image?
    Could you send a screenshot of the gameobject and the issue you have?
     
  3. tafkams

    tafkams

    Joined:
    Oct 5, 2021
    Posts:
    46
    Oh, sorry, I wanted to attach images and totally forgot about that ;)

    I edited the original post
     
  4. tafkams

    tafkams

    Joined:
    Oct 5, 2021
    Posts:
    46
    Update: it has to do with the Volume Mask settings of the camera component. If I exclude the default layer from the Volume Mask, then it renders correctly, but why is the color affected by these settings?
     
    DevDunk likes this.
  5. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,028
    Because screen space puts the UI inside of the camera rendering loop
     
  6. tafkams

    tafkams

    Joined:
    Oct 5, 2021
    Posts:
    46
    Yes, but there is nothing active in the scene that should affect the UI if you look at the top image. What am I missing?
     
  7. cLick1338

    cLick1338

    Joined:
    Feb 23, 2017
    Posts:
    74
    Still affected by post processing especially tonemapping iirc
     
  8. tafkams

    tafkams

    Joined:
    Oct 5, 2021
    Posts:
    46
    can you elaborate on that? Where is the tonemapping happening? There is no volume in the scene that would control that

    EDIT: Found it in the HDRP global settings. Finally! Thank you!
     
    Last edited: Sep 15, 2022