Axiom.Graphics.CompositorInstance.CreateLocalMaterial C# (CSharp) Method

CreateLocalMaterial() protected method

Create a local dummy material with one technique but no passes. The material is detached from the Material Manager to make sure it is destroyed when going out of scope.
protected CreateLocalMaterial ( string name ) : Material
name string
return Material
		protected Material CreateLocalMaterial( string name )
		{
			Material mat = (Material)MaterialManager.Instance.Create( "CompositorInstanceMaterial" + materialDummyCounter++ + "/" + name, ResourceGroupManager.InternalResourceGroupName );

			MaterialManager.Instance.Remove( mat.Name );
			mat.GetTechnique( 0 ).RemoveAllPasses();
			return mat;
		}