X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=dither_effect.frag;h=f12530dbdd7cd904b8ae820928c66cf471259f20;hp=f271b633c24edea92c54ac38f626cad2d28872a6;hb=90ac46cdc5845432df13385f946c63b5496c685e;hpb=6bec5fc3abc5f57c6cddec2148626cca9a94bedf diff --git a/dither_effect.frag b/dither_effect.frag index f271b63..f12530d 100644 --- a/dither_effect.frag +++ b/dither_effect.frag @@ -3,6 +3,11 @@ // uniform vec2 PREFIX(tc_scale); // uniform float PREFIX(round_fac), PREFIX(inv_round_fac); +// See footer.frag for details about this if statement. +#ifndef YCBCR_ALSO_OUTPUT_RGBA +#define YCBCR_ALSO_OUTPUT_RGBA 0 +#endif + #if YCBCR_ALSO_OUTPUT_RGBA // There are two values to dither; otherwise, exactly the same as the algorithm below