Skip to content

Commit 44f0d03

Browse files
committed
Update v3.0.8.4
2 parents 6032b85 + 668a824 commit 44f0d03

File tree

3 files changed

+123
-58
lines changed

3 files changed

+123
-58
lines changed

xivModdingFramework/Materials/DataContainers/ShaderHelpers.cs

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -371,46 +371,49 @@ private static void AddCustomNamesAndValues()
371371
UpdateConstantName(shKv.Key, 0x36080AD0, "Dither?");
372372
UpdateConstantName(shKv.Key, 0xCB0338DC, "Reflection Color?");
373373
UpdateConstantName(shKv.Key, 0x58DE06E2, "Limbal Color?");
374-
UpdateConstantName(shKv.Key, 0x59BDA0B1, "Inverse Metalness?");
375374
UpdateConstantName(shKv.Key, 0x141722D5, "Specular Color");
376375

377376
// Names based on analyzing shader code.
378377
UpdateConstantName(shKv.Key, 0x62E44A4F, "Skin Fresnel");
379378
UpdateConstantName(shKv.Key, 0x2E60B071, "Skin Tile Multiplier");
380-
UpdateConstantName(shKv.Key, 0x2C2A34DD, "Skin Color");
381-
UpdateConstantName(shKv.Key, 2569562539, "Skin Wetness Lerp");
382-
UpdateConstantName(shKv.Key, 1112929012, "Skin Tile Material");
379+
UpdateConstantName(shKv.Key, 0x992869AB, "Skin Wetness Lerp");
383380
UpdateConstantName(shKv.Key, 0x59BDA9B1, "Subsurface/Fur Index", true);
384381

385382
// Brute-Forced CRCs
386383
UpdateConstantName(shKv.Key, 0x29AC0223, "g_AlphaThreshold", true);
387384
UpdateConstantName(shKv.Key, 0x2C2A34DD, "g_DiffuseColor", true);
388385
UpdateConstantName(shKv.Key, 0x11C90091, "g_WhiteEyeColor", true);
389386
UpdateConstantName(shKv.Key, 0x38A64362, "g_EmissiveColor", true);
390-
UpdateConstantName(shKv.Key, 3086627810, "g_SSAOMask", true);
391-
UpdateConstantName(shKv.Key, 1112929012, "g_TileIndex", true);
392-
UpdateConstantName(shKv.Key, 778088561, "g_TileScale", true);
393-
UpdateConstantName(shKv.Key, 315010207, "g_TileAlpha", true);
394-
UpdateConstantName(shKv.Key, 3042205627, "g_NormalScale", true);
395-
UpdateConstantName(shKv.Key, 2148459359, "g_SheenRate", true);
396-
UpdateConstantName(shKv.Key, 522602647, "g_SheenTintRate", true);
397-
UpdateConstantName(shKv.Key, 4103141230, "g_SheenAperture", true);
398-
UpdateConstantName(shKv.Key, 1357081942, "g_IrisRingColor", true);
399-
UpdateConstantName(shKv.Key, 1724464446, "g_IrisThickness", true);
400-
UpdateConstantName(shKv.Key, 3593204584, "g_AlphaAperture", true);
401-
UpdateConstantName(shKv.Key, 3497683557, "g_AlphaOffset", true);
402-
UpdateConstantName(shKv.Key, 1648149758, "g_OutlineColor", true);
403-
UpdateConstantName(shKv.Key, 2289092920, "g_OutlineWidth", true);
387+
UpdateConstantName(shKv.Key, 0xB7FA33E2, "g_SSAOMask", true);
388+
UpdateConstantName(shKv.Key, 0x4255F2F4, "g_TileIndex", true);
389+
UpdateConstantName(shKv.Key, 0x2E60B071, "g_TileScale", true);
390+
UpdateConstantName(shKv.Key, 0x12C6AC9F, "g_TileAlpha", true);
391+
UpdateConstantName(shKv.Key, 0xB5545FBB, "g_NormalScale", true);
392+
UpdateConstantName(shKv.Key, 0x800EE35F, "g_SheenRate", true);
393+
UpdateConstantName(shKv.Key, 0x1F264897, "g_SheenTintRate", true);
394+
UpdateConstantName(shKv.Key, 0xF490F76E, "g_SheenAperture", true);
395+
UpdateConstantName(shKv.Key, 0x50E36D56, "g_IrisRingColor", true);
396+
UpdateConstantName(shKv.Key, 0x66C93D3E, "g_IrisThickness", true);
397+
UpdateConstantName(shKv.Key, 0xD62BF368, "g_AlphaAperture", true);
398+
UpdateConstantName(shKv.Key, 0xD07A6A65, "g_AlphaOffset", true);
399+
UpdateConstantName(shKv.Key, 0x623CC4FE, "g_OutlineColor", true);
400+
UpdateConstantName(shKv.Key, 0x8870C938, "g_OutlineWidth", true);
404401
UpdateConstantName(shKv.Key, 0x39551220, "g_TextureMipBias", true);
405402
UpdateConstantName(shKv.Key, 0x7801E004, "g_GlassIOR", true);
406403
UpdateConstantName(shKv.Key, 0xDF15112D, "g_ToonIndex", true);
407404
UpdateConstantName(shKv.Key, 0x3632401A, "g_LipRoughnessScale", true);
408405
UpdateConstantName(shKv.Key, 0x7DABA471, "g_IrisRingEmissiveIntensity", true);
409406
UpdateConstantName(shKv.Key, 0xCB0338DC, "g_SpecularColorMask", true);
407+
UpdateConstantName(shKv.Key, 0x59BDA0B1, "g_ShaderID", true);
408+
UpdateConstantName(shKv.Key, 0x29253809, "g_ShaderID", true);
409+
UpdateConstantName(shKv.Key, 0xDF15112D, "g_ToonIndex", true);
410+
UpdateConstantName(shKv.Key, 0x00A680BC, "g_ToonSpecIndex", true);
411+
UpdateConstantName(shKv.Key, 0x3CCE9E4C, "g_ToonLightScale", true);
412+
UpdateConstantName(shKv.Key, 0xD96FAF7A, "g_ToonReflectionScale", true);
410413

411-
412-
UpdateConstantName(shKv.Key, 0xCB0338DC, "g_IrisAPrefersRg", true);
413-
UpdateConstantName(shKv.Key, 0xC4647F37, "g_GlassThicknessMax", true);
414+
// Brute forced CRCs that may be wrong/hash-collisions.
415+
UpdateConstantName(shKv.Key, 0xCB0338DC, "g_IrisAPrefersRg(?)", true);
416+
UpdateConstantName(shKv.Key, 0xC4647F37, "g_GlassThicknessMax(?)", true);
414417
}
415418

416419
}

0 commit comments

Comments
 (0)