public void RemoveHydraxDepthTechniques() { foreach (string material in hydraxDepthMaterials) { MaterialPtr m = MaterialManager.Singleton.GetByName(material); if (m != null && m.GetTechnique("_Hydrax_Depth_Technique") != null) { m.RemoveTechnique(hydraxDepthMaterialsMap[material]); m = null; } } }