This commit is contained in:
CroakFang
2024-04-23 02:03:29 +08:00
parent 35674b67b5
commit e4e8c7d583
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -883,6 +883,11 @@ public class UmaContainerCharacter : UmaContainer
m.SetTexture("_OptionMaskMap", textures.FirstOrDefault(t => t.name.Contains("_hair") && t.name.EndsWith("ctrl")));
m.SetTexture("_MaskColorTex", textures.FirstOrDefault(t => t.name.Contains("_hair") && t.name.EndsWith("area")));
SetMaskColor(m, MobHeadColor, "hair", true);
if (IsMob)
{
var cutoff = CharaData["hair_cutoff"].ToString();
m.SetFloat("_Cutoff", int.Parse(cutoff) / 10000f); //Not entirely correct, but effective
}
}
switch (m.shader.name)