Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }