mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 20:08:53 -05:00
implement Material Morph in/out
This commit is contained in:
@@ -19,7 +19,6 @@ namespace VRM
|
||||
|
||||
if (m_target.BlendShapeAvatar != null)
|
||||
{
|
||||
|
||||
m_sliders = m_target.BlendShapeAvatar.Clips
|
||||
.Where(x => x != null)
|
||||
.Select(x => new BlendShapeSlider(m_target, BlendShapeKey.CreateFrom(x)))
|
||||
|
||||
@@ -204,7 +204,7 @@ namespace VRM
|
||||
if (materialValues != null && m_materialMap != null)
|
||||
{
|
||||
// clear
|
||||
Debug.LogFormat("clear material");
|
||||
//Debug.LogFormat("clear material");
|
||||
foreach (var kv in m_materialMap)
|
||||
{
|
||||
foreach (var _kv in kv.Value.PropMap)
|
||||
@@ -218,7 +218,7 @@ namespace VRM
|
||||
MaterialItem item;
|
||||
if (m_materialMap.TryGetValue(x.MaterialName, out item))
|
||||
{
|
||||
Debug.Log("set material");
|
||||
//Debug.Log("set material");
|
||||
PropItem prop;
|
||||
if (item.PropMap.TryGetValue(x.ValueName, out prop))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user