Skip to content

Commit a4e144b

Browse files
committed
remove incorrect linear conversion
1 parent 3524d80 commit a4e144b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

UnityGLTF/Assets/UnityGLTF/Runtime/Scripts/Extensions/SchemaExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ public static UnityEngine.Color ToUnityColorRaw(this GLTF.Math.Color color)
327327

328328
public static GLTF.Math.Color ToNumericsColorRaw(this UnityEngine.Color color)
329329
{
330-
var c = color.linear;
330+
var c = color;
331+
// if (QualitySettings.activeColorSpace == ColorSpace.Linear)
332+
// c = c.linear;
331333
return new GLTF.Math.Color(c.r, c.g, c.b, c.a);
332334
}
333335

0 commit comments

Comments
 (0)