protected static bool ParseColorWrite( string parameters, MaterialScriptContext context )
{
switch ( parameters.ToLower() )
{
case "on":
context.pass.ColorWriteEnabled = true;
break;
case "off":
context.pass.ColorWriteEnabled = false;
break;
default:
LogParseError( context, "Bad color_write attribute, valid parameters are 'on' or 'off'." );
break;
}
return false;
}