protected static bool ParseLighting( string parameters, MaterialScriptContext context )
{
switch ( parameters.ToLower() )
{
case "on":
context.pass.LightingEnabled = true;
break;
case "off":
context.pass.LightingEnabled = false;
break;
default:
LogParseError( context, "Bad lighting attribute, must be 'on' or 'off'" );
break;
}
return false;
}