mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-11 05:19:14 -05:00
import/export uniunlit's alphacutoff
This commit is contained in:
@@ -263,6 +263,7 @@ namespace UniGLTF
|
||||
else if (renderMode == UniUnlitRenderMode.Cutout)
|
||||
{
|
||||
material.alphaMode = glTFBlendMode.MASK.ToString();
|
||||
material.alphaCutoff = m.GetFloat("_Cutoff");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -116,6 +116,7 @@ namespace UniGLTF
|
||||
else if (x.alphaMode == "MASK")
|
||||
{
|
||||
UniUnlit.Utils.SetRenderMode(material, UniUnlit.UniUnlitRenderMode.Cutout);
|
||||
material.SetFloat("_Cutoff", x.alphaCutoff);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user