protected static bool ParseTextureAlias( string parameters, MaterialScriptContext context )
{
Debug.Assert( context.textureUnit != null );
// get the texture alias
string[] values = parameters.Split( new char[] { ' ', '\t' } );
if ( values.Length != 1 )
{
LogParseError( context, "Invalid texture_alias entry - expected 1 parameter." );
return true;
}
// update section
context.textureUnit.TextureNameAlias = values[ 0 ];
return false;
}