Skip to content

Commit 767a2d1

Browse files
committed
Zenos fixes
1 parent d5e1c41 commit 767a2d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

xivModdingFramework/Models/ModelTextures/ModelTexture.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,12 @@ private static Color4 GetConstColor(XivMtrl mtrl, uint constant, Color4 defaultC
12591259
private static (Color4? Color, bool Blend) GetSkinBonusColor(XivMtrl mtrl, CustomModelColors colors)
12601260
{
12611261
Color4? bonusColor = null;
1262+
var compatMode = mtrl.ShaderKeys.FirstOrDefault(x => x.KeyId == 0xB616DC5A && x.Value == 0x600EF9DF) != null;
1263+
if (compatMode)
1264+
{
1265+
return (null, false);
1266+
}
1267+
12621268

12631269
var bonusColorKey = mtrl.ShaderKeys.FirstOrDefault(x => x.KeyId == 0x380CAED0);
12641270

@@ -1294,6 +1300,11 @@ private static (Color4? Color, bool Blend) GetSkinBonusColor(XivMtrl mtrl, Custo
12941300
private static (Color4? Color, bool Blend) GetSkinBonusColor2(XivMtrl mtrl, CustomModelColors colors)
12951301
{
12961302
Color4? bonusColor = null;
1303+
var compatMode = mtrl.ShaderKeys.FirstOrDefault(x => x.KeyId == 0xB616DC5A && x.Value == 0x600EF9DF) != null;
1304+
if (compatMode)
1305+
{
1306+
return (null, false);
1307+
}
12971308

12981309
var bonusColorKey = mtrl.ShaderKeys.FirstOrDefault(x => x.KeyId == 0x380CAED0);
12991310

0 commit comments

Comments
 (0)