Exemplo n.º 1
0
        public override void AddModifier(MaterialMorpher caller, object val, ModifyType mod)
        {
            if (!CheckCompability(val))
            {
                return;
            }

            if (mods.ContainsKey(caller) &&
                (mod == ModifyType.Multiply && RetrieveValue(val) == Matrix4.Identity))
            {
                mods.Remove(caller);
            }
            else
            {
                mods[caller] = new UniformModifier(val, mod);
            }

            CalculateFinal();
        }
Exemplo n.º 2
0
 public void AddModifier(Morph caller, object val, ModifyType mod)
 {
     mods[caller] = new UniformModifier(val, mod);
 }