Skip to content

Commit

Permalink
remove incorrect linear conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Sep 10, 2020
1 parent 3524d80 commit a4e144b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ public static UnityEngine.Color ToUnityColorRaw(this GLTF.Math.Color color)

public static GLTF.Math.Color ToNumericsColorRaw(this UnityEngine.Color color)
{
var c = color.linear;
var c = color;
// if (QualitySettings.activeColorSpace == ColorSpace.Linear)
// c = c.linear;
return new GLTF.Math.Color(c.r, c.g, c.b, c.a);
}

Expand Down

0 comments on commit a4e144b

Please sign in to comment.