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(); }
public void AddModifier(Morph caller, object val, ModifyType mod) { mods[caller] = new UniformModifier(val, mod); }