Search Issue Tracker
Not Reproducible
Fixed in 2018.4.X, 2019.2.X
Votes
4
Found in
2018.3.0a1
2019.1.0a1
2019.1.9f1
2019.2.0a1
2019.3.0a1
Issue ID
1168191
Regression
Yes
GUI.DrawTexture() is too bright/washed out when "Color Space" is set to "Linear Mode"
How to reproduce:
1. Open attached project "Test.zip" and scene "SampleScene"
2. Make sure that "Edit" -> "Project Settings" -> "Player" -> "Color Space" is set to "Linear"
3. Enter Play mode
4. In Game view, observe the Texture colors
5. Compare the results with other Unity versions
Expected result: all Unity versions have a texture with the same colors
Actual result: 2017.4 texture's colors are too intense, 2018.1/2018.2 texture's colors seem normal, in 2018.3 texture's colors are washed out / too bright
Reproducible with: 2017.4.30f1, 2018.3.0a1, 2018.4.4f1, 2019.1.10f1, 2019.2.0b9, 2019.3.0a9
Not reproducible with: 2018.1.0a1, 2018.2.21f1
Comments (6)
-
Nola_Totoc
Feb 21, 2020 13:10
We met this issue with Unity 2018.3.14f1 and 2018.4.16f1 on mobile (Android and iOS). The workaround doesn't work with both.
The issue is also in the editor and/or play mode with Unity 2018.3.14f1 but not present with 2018.4.16f1.
-
guy_
Nov 20, 2019 04:23
Bug found in 2019.1.14f1 as well, switching from linear to gamma color space in Player settings fixes the texture colors, but it's not really a viable solution.
-
manutoo
Jul 18, 2019 14:55
The issue has just been marked "By Design" ; if it was really by "design", then the result shouldn't differ in the Editor and in the Build, nor from 1 unity version to the other... >_<
-
daisySa
Jul 10, 2019 07:55
Bug also found in 2018.4.2f1.
-
manutoo
Jul 09, 2019 15:40
1 more thing : in the Editor, the font color is also washed out and in build, the font color looks ok
-
manutoo
Jul 09, 2019 15:38
I reported this bug initially.
I just noticed 2 things :
- in build, GUI.DrawTexture() produces the correct colors
- in the Editor, Graphics.DrawTexture() looks correct, but in Build it gets too dark
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note (2020.1.X):
A bug has been identified in GameView that causes OnGUI drawing to appear in an incorrect color space. This only affects Linear color space projects and GameView in the editor. The Standalone Player shows the correct results and is not affected by this bug. A fix has been submitted for 2019.3. A potential temporary workaround is to wrap drawing inside OnGUI with GL.sRGBWrite=false and restore that value at the end of the function. Please note this workaround potentially incurs a slight performance hit that could be negligible in GameView but should be avoided in standalone builds (where the bug doesn't even occur).