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