Small optimization of single-pass shaders.

Saves us about 10MB of texture data transfers.
Properly fix YUV comparison.
Allow the YUV thresholds to be set as a parameter.