implement Material Morph in/out

This commit is contained in:
ousttrue
2018-04-09 19:50:31 +09:00
parent 50ecd633d5
commit c9bec38fea
4 changed files with 53 additions and 16 deletions

View File

@@ -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)))

View File

@@ -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))
{