Search Unity

Bug Issue with colors in linear color space

Discussion in '2D Experimental Preview' started by AndreasBodker, Apr 21, 2020.

  1. AndreasBodker

    AndreasBodker

    Joined:
    Oct 1, 2014
    Posts:
    1
    We are working on a project that renders in linear color space and would like to use vector graphics.

    unfortunately there seem to be a problem with color conversion to linear space. This is how a smooth gradient fade renders in linear.
    upload_2020-4-21_10-42-45.png

    And this how it looks (and should look) in gamma
    upload_2020-4-21_10-44-6.png

    The solid color and the gradient are different shapes.

    It looks like the problem is the solid color. It 's too green and saturated in linear space.
     
  2. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    770
    I think you are correct. If I remember correctly, gamma is the expected colorspace for gradient interpolation. We may convert these colors to linear colorspace.

    Can you please file a bug so we can track this? (Help > Report a Bug...) Thanks!
     
unityunity