protected static bool ParseTextureUnit( string parameters, MaterialScriptContext context )
{
// create a new texture unit
context.textureUnit = context.pass.CreateTextureUnitState();
// get the texture unit name
string[] values = parameters.Split( new char[] { ' ', '\t' } );
if ( values.Length > 0 && values[ 0 ].Length > 0 )
context.textureUnit.Name = values[ 0 ];
// update section
context.section = MaterialScriptSection.TextureUnit;
// increase texture unit level depth
context.stateLev++;
// return true because this must be followed by a {
return true;
}