From 600e8eb8d865f6ea6a75b6a7ef6e9781eb928866 Mon Sep 17 00:00:00 2001 From: 0b5vr <0b5vr@0b5vr.com> Date: Thu, 28 Oct 2021 17:13:02 +0900 Subject: [PATCH] fix (VRM1.0, MToon): exported emissive factor should be in linear colorspace --- Assets/VRM10/Runtime/IO/Material/Vrm10MToonMaterialExporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM10/Runtime/IO/Material/Vrm10MToonMaterialExporter.cs b/Assets/VRM10/Runtime/IO/Material/Vrm10MToonMaterialExporter.cs index 7f50a6b55..2cb24ba62 100644 --- a/Assets/VRM10/Runtime/IO/Material/Vrm10MToonMaterialExporter.cs +++ b/Assets/VRM10/Runtime/IO/Material/Vrm10MToonMaterialExporter.cs @@ -84,7 +84,7 @@ namespace UniVRM10 mtoon.GiEqualizationFactor = context.GiEqualizationFactor; // Emission - dst.emissiveFactor = context.EmissiveFactorLinear.ToFloat3(ColorSpace.Linear, ColorSpace.Linear); + dst.emissiveFactor = context.EmissiveFactorLinear.ToFloat3(ColorSpace.sRGB, ColorSpace.Linear); var emissiveTextureIndex = textureExporter.RegisterExportingAsSRgb(context.EmissiveTexture, needsAlpha: false); if (emissiveTextureIndex != -1) {