+5

Preview window in Unity 5 seems to have gamma issue when using linear rendering

Skittlebrau 9 years ago 0
There seems to be an issue with the preview window when using Unity 5 (I am testing with RC1) in linear lighting mode.  It appears there may be an extra gamma curve being applied to the preview window or something like that.  For the simplest test, you can just disable the background skybox and set a color to something like (56, 56, 56) which is the color of the shader forge background.  The result is something like (10, 10, 10) instead.  A similar (and obviously more important) issue occurs with the actual shader output.

Image 331

If you were to route the output through that close-to-srgb-curve node of pow(1/2.2), you end up getting (59, 59, 59) out of the shader which is pretty close, making me suspicious of the gamma thing.  Also if the project is set to gamma rendering mode, things seem to be ok.