]> git.sesse.net Git - movit/blobdiff - dither_effect.frag
Set pixel_data[] to NULL in YCbCrInput as well.
[movit] / dither_effect.frag
index 9b39553099e314c940fb1401649517346910c6e1..930bd94fe68d3587270e04de1cb7811e1e64ce6b 100644 (file)
@@ -1,9 +1,10 @@
 uniform sampler2D PREFIX(dither_tex);
+uniform vec2 PREFIX(tc_scale);
 
 vec4 FUNCNAME(vec2 tc) {
        // We also choose to dither alpha, just in case.
        // Maybe it should in theory have a separate dither,
        // but I doubt it matters much. We currently don't
        // really handle alpha in any case.
-       return INPUT(tc) + texture2D(PREFIX(dither_tex), tc).xxxx;
+       return INPUT(tc) + texture2D(PREFIX(dither_tex), tc * PREFIX(tc_scale)).xxxx;
 }