/// <summary>
 /// Dispose
 /// </summary>
 /// <param name="someObject">Some object</param>
 public static void Dispose(ref Material someObject)
 {
     if (someObject != null)
         someObject.Dispose();
     someObject = null;
 }