protected static bool ParseDepthBias( string parameters, MaterialScriptContext context )
{
string[] values = parameters.Split( new char[] { ' ', '\t' } );
float constantBias = float.Parse( values[ 0 ] );
float slopeScaleBias = 0.0f;
if ( values.Length > 1 )
{
slopeScaleBias = float.Parse( values[ 1 ] );
}
context.pass.SetDepthBias( constantBias, slopeScaleBias );
return false;
}