Skip to content

Commit ac45deb

Browse files
committed
Fix for improperly generated diffuses for diffuse-base standard textures.
1 parent eb4b694 commit ac45deb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

xivModdingFramework/Models/ModelTextures/ModelTexture.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,7 @@ private static void ComputeShaderColors(CustomModelColors colors, ShaderInfo in
455455
{
456456
// Has a raw diffuse.
457457
newDiffuse = baseDiffuse;
458-
459-
// But we also have to modulate that diffuse color by the multi red channel.
460-
newDiffuse = MultiplyColor(newDiffuse, baseSpecular.R);
458+
newDiffuse.A = baseNormal.B;
461459

462460
// Has a raw specular.
463461
newSpecular = baseSpecular;
@@ -466,6 +464,10 @@ private static void ComputeShaderColors(CustomModelColors colors, ShaderInfo in
466464
{
467465
// Has a raw diffuse.
468466
newDiffuse = baseDiffuse;
467+
468+
// But we also have to modulate that diffuse color by the multi red channel.
469+
newDiffuse = MultiplyColor(newDiffuse, baseSpecular.R);
470+
469471
newDiffuse.A = baseNormal.B;
470472

471473
// Uses multi green/blue in some fashion.

0 commit comments

Comments
 (0)