Search Unity

IMGUI Color Space problems on Mac and Xbox One.

Discussion in 'Extensions & OnGUI' started by martinofigueroa, Sep 14, 2018.

  1. martinofigueroa

    martinofigueroa

    Joined:
    Feb 8, 2017
    Posts:
    1
    Hello everyone,

    We are having some issues with the IMGUI rendering on Mac and Xbox One: GUI Textures look way too bright (everything looks fine on PC and PS4).
    (Please see attached image for comparison).

    All our textures are imported with the "Editor GUI and Legacy GUI" option, which as far as we underdstand bypasses the sRGB -> Linear conversion, which according to the docs is how it's meant to be set for IMGUI textures.

    We tried this on both 2017.4.11 and 2018.2.8, with the same results.
    We use linear rendering, deferred path (DX11 on Windows, OpenGL on Mac).

    We can make things work sort of correctly on MAC by changing the texture import options to Default, and ticking the sRGB box, but this breaks the PC rendering (it looks way too dark).

    It's as the rendering is done in Gamma space on PC and in Linear space on Mac.

    Does any one have any idea of how to fix this?

    Thanks!
    Martiño.
     

    Attached Files:

  2. SDGNelson

    SDGNelson

    Joined:
    Jun 13, 2015
    Posts:
    1
    Did you end up finding a workaround? Currently thinking to override the UI shader on Mac to fix the gamma.