import/export uniunlit's alphacutoff

This commit is contained in:
PoChang007 2021-01-13 16:10:21 +09:00
parent a0003f2dc2
commit 5ef92b4bdc
2 changed files with 2 additions and 0 deletions

View File

@ -263,6 +263,7 @@ namespace UniGLTF
else if (renderMode == UniUnlitRenderMode.Cutout)
{
material.alphaMode = glTFBlendMode.MASK.ToString();
material.alphaCutoff = m.GetFloat("_Cutoff");
}
else
{

View File

@ -116,6 +116,7 @@ namespace UniGLTF
else if (x.alphaMode == "MASK")
{
UniUnlit.Utils.SetRenderMode(material, UniUnlit.UniUnlitRenderMode.Cutout);
material.SetFloat("_Cutoff", x.alphaCutoff);
}
else
{