bug fix, add outline width setting

This commit is contained in:
CroakFang
2023-02-14 03:57:07 +08:00
parent f11edb5924
commit f99edbfd94
16 changed files with 670 additions and 518 deletions
+10
View File
@@ -856,6 +856,16 @@ public class UmaViewerBuilder : MonoBehaviour
m.shader = bodyAlphaShader;
}
if (m.shader.name.Contains("Noline")&& m.shader.name.Contains("TSER"))
{
var s = ShaderList.Find(a=>a.name == m.shader.name.Replace("Noline", "")); //Generic costume shader need to change manually.
if (s)
{
m.shader = s;
}
}
switch (costumeIdShort.Split('_')[0]) //costume ID
{
case "0001":
+5
View File
@@ -1186,4 +1186,9 @@ public class UmaViewerUI : MonoBehaviour
}
}
public void ChangeOutlineWidth(float val)
{
Shader.SetGlobalFloat("_GlobalOutlineWidth", val);
}
}