Search Unity

SpriteAtlas bug: sRGB setting is ignored

Discussion in '2D' started by vadersb_ru, Dec 10, 2019.

  1. vadersb_ru

    vadersb_ru

    Joined:
    Jul 5, 2017
    Posts:
    8
    Hi!
    I've discovered a bug with SpriteAtlases, the point is that sRGB setting is ignored and when in Play Mode, packed sprites are always rendered like sRGB=OFF.

    I've filed a bug report, and I've got a confirmation from Unity staff that they were able to reproduce the bug. Here's the bug page in the issue tracker:
    https://issuetracker.unity3d.com/issues/spriteatlas-ignores-srgb-setting-when-in-play-mode

    And a simple project I've created to display the bug:
    https://github.com/vadersb/Unity_Issue_SpriteAtlas_sRGB

    Essentially, the problem is that sometimes sprites are rendered darker than they should be because of the bug. It is noticeable when sprite is scaled-down on screen, in the test project case it's 0.5 of original sprite size.

    I believe that this bug is a problem for any project that uses SpriteAtlases, and I wonder if/when it's going to be fixed.
     
  2. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    244
    Hi, we have fixed this issue and are testing it. Hopefully it should be available in 2020.1 soon and will be backported to older releases. Will post an update soon.
     
  3. vadersb_ru

    vadersb_ru

    Joined:
    Jul 5, 2017
    Posts:
    8
    Great to hear, @Venkify , thank you!
     
unityunity