public void AddDecal(EffectLDecal d)
 {
     RemoveDecal(d);
     if (d.m_Kind == EffectLDecal.Kind.AllEffect)
     {
         m_DecalsAll.Add(d);
     }
     if (d.m_Kind == EffectLDecal.Kind.NormalsOnly)
     {
         m_DecalsNormals.Add(d);
     }
     if (d.m_Kind == EffectLDecal.Kind.DiffuseOnly)
     {
         m_DecalsDiffuse.Add(d);
     }
     if (d.m_Kind == EffectLDecal.Kind.SpecularOnly)
     {
         m_DecalsSpecular.Add(d);
     }
     if (d.m_Kind == EffectLDecal.Kind.EmissionOnly)
     {
         m_DecalsEmission.Add(d);
     }
     if (d.m_Kind == EffectLDecal.Kind.DiffuseNormalSpecular)
     {
         m_DecalsCommon.Add(d);
     }
 }
 public void RemoveDecal(EffectLDecal a)
 {
     m_DecalsAll.Remove(a);
     m_DecalsNormals.Remove(a);
     m_DecalsDiffuse.Remove(a);
     m_DecalsSpecular.Remove(a);
     m_DecalsEmission.Remove(a);
     m_DecalsCommon.Remove(a);
 }