protected static bool ParseCullSoftware( string parameters, MaterialScriptContext context )
{
// lookup the real enum equivalent to the script value
object val = ScriptEnumAttribute.Lookup( parameters, typeof( ManualCullingMode ) );
// if a value was found, assign it
if ( val != null )
{
context.pass.ManualCullingMode = (ManualCullingMode)val;
}
else
{
string legalValues = ScriptEnumAttribute.GetLegalValues( typeof( ManualCullingMode ) );
LogParseError( context, "Bad cull_software attribute, valid parameters are {0}.", legalValues );
}
return false;
}