mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-09 12:11:35 -05:00
import/export uniunlit's alphacutoff
This commit is contained in:
parent
a0003f2dc2
commit
5ef92b4bdc
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user