public GetTextureInstance ( string name, int mrtIndex ) : Axiom.Core.Texture | ||
name | string | The name of the texture in the original compositor definition |
mrtIndex | int | If name identifies a MRT, which texture attachment to retrieve |
return | Axiom.Core.Texture |
public Texture GetTextureInstance( string name, int mrtIndex )
{
//Try simple texture
Texture ret = null;
if ( globalTextures.TryGetValue( name, out ret ) )
return ret;
//Try MRT
string mrtName = GetMRTLocalName( name, mrtIndex );
if ( !globalTextures.TryGetValue( name, out ret ) )
return ret;
throw new AxiomException( "Non-existent global texture name." );
}