Thank you for the help. I think I figured it out (at least, it looks accurate):
float4 wave;
if(minmaxrms.y > 1.0){
bgColor.r = 1.0;
bgColor.g = 0.0;
bgColor.b = 0.0;
wave=bgColor;
}
else if(outside)
wave = bgColor;
else
wave = textColor;
return wave;
This replaces the if statement at the end of evaluate(), making clipping parts red.
MDMA, I think you need to add the line [font= \"Courier New\"]output.tc.y *= 1.2;[/font] to the end of VS(). The result should look like this:
PS_IN VS( VS_IN input )
{
PS_IN output = (PS_IN)0;
float2 half_pixel = float2(1,-1) / viewportSize;
output.pos = float4(input.pos - half_pixel, 0, 1);
if (horizontal)
{
output.tc = float2((input.tc.x + 1.0) / 2.0, input.tc.y);
}
else
{
output.tc = float2((-input.tc.y + 1.0) / 2.0, input.tc.x);
}
if (flipped)
output.tc.x = 1.0 - output.tc.x;
output.tc.y *= 1.2;
return output;
}