fix (VRM1.0, MToon): exported emissive factor should be in linear colorspace

This commit is contained in:
0b5vr
2021-10-28 17:13:02 +09:00
parent 48082bb7b7
commit 600e8eb8d8

View File

@@ -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)
{