protected static bool ParseScroll( string parameters, MaterialScriptContext context )
{
string[] values = parameters.Split( new char[] { ' ', '\t' } );
if ( values.Length != 2 )
{
LogParseError( context, "Bad scroll attribute, wrong number of parameters (expected 2)." );
}
else
{
context.textureUnit.SetTextureScroll( StringConverter.ParseFloat( values[ 0 ] ), StringConverter.ParseFloat( values[ 1 ] ) );
}
return false;
}