/// <summary> /// Creates and loads the SharedInstance if it has not already been loaded. This method is thread safe. /// </summary> public static void Load() { if (sharedInstance == null) { lock (initKey) { if (sharedInstance == null) { sharedInstance = new SolidColorMeshShader(); } } } }
public override void Dispose() { base.Dispose(); sharedInstance = null; }