diff --git a/Assets/VRM/Runtime/IO/VRMMaterialExporter.cs b/Assets/VRM/Runtime/IO/VRMMaterialExporter.cs index e484d256a..7b65783d2 100644 --- a/Assets/VRM/Runtime/IO/VRMMaterialExporter.cs +++ b/Assets/VRM/Runtime/IO/VRMMaterialExporter.cs @@ -5,6 +5,7 @@ using UniGLTF; using UniGLTF.ShaderPropExporter; using UnityEngine; using VRMShaders; +using ColorSpace = UniGLTF.ColorSpace; namespace VRM { @@ -160,7 +161,8 @@ namespace VRM { case ShaderPropertyType.Color: { - var value = m.GetColor(kv.Key).ToArray(); + // No color conversion. Because color property is serialized to raw float array. + var value = m.GetColor(kv.Key).ToFloat4(ColorSpace.Linear, ColorSpace.Linear); material.vectorProperties.Add(kv.Key, value); } break;