コード例 #1
0
        public BlendShapeMerger(IEnumerable <BlendShapeClip> clips, Transform root)
        {
            m_clipMap = clips.ToDictionary(x => BlendShapeKey.CreateFrom(x), x => x);

            m_valueMap = new Dictionary <BlendShapeKey, float>();

            m_blendShapeBindingMerger    = new BlendShapeBindingMerger(m_clipMap, root);
            m_materialValueBindingMerger = new MaterialValueBindingMerger(m_clipMap, root);
        }
コード例 #2
0
        public ExpressionMerger(IEnumerable <VRM10Expression> clips, Transform root)
        {
            m_clipMap = clips.ToDictionary(x => ExpressionKey.CreateFromClip(x), x => x);

            m_valueMap = new Dictionary <ExpressionKey, float>();

            m_morphTargetBindingMerger   = new MorphTargetBindingMerger(m_clipMap, root);
            m_materialValueBindingMerger = new MaterialValueBindingMerger(m_clipMap, root);
        }
コード例 #3
0
        public ExpressionMerger(VRM10ObjectExpression expressions, Transform root)
        {
            m_clipMap = expressions.Clips.ToDictionary(x => expressions.CreateKey(x.Clip), x => x.Clip);

            m_valueMap = new Dictionary <ExpressionKey, float>();

            m_morphTargetBindingMerger   = new MorphTargetBindingMerger(m_clipMap, root);
            m_materialValueBindingMerger = new MaterialValueBindingMerger(m_clipMap, root);
        }