X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=deconvolution_sharpen_effect.frag;h=75f249a2e896bb444b031fc880de205885eb0506;hp=90ca3c1efd967df06a1656bf6c22aeebb19bf0d1;hb=61e2a7671f7b22227dcdc34dd303ae4fcc802aaa;hpb=71a27346652e54781215737255f757f6292ff120 diff --git a/deconvolution_sharpen_effect.frag b/deconvolution_sharpen_effect.frag index 90ca3c1..75f249a 100644 --- a/deconvolution_sharpen_effect.frag +++ b/deconvolution_sharpen_effect.frag @@ -36,7 +36,7 @@ vec4 FUNCNAME(vec2 tc) { // Case D: All other samples have four-way symmetry. // (Actually we have eight-way, but since we are using normalized // coordinates, we can't just flip x and y.) - for (int y = 1; y < R; ++y) { + for (int y = 1; y <= R; ++y) { for (int x = 1; x <= R; ++x) { vec4 sample = PREFIX(samples)[y * (R + 1) + x]; vec2 mirror_sample = vec2(sample.x, -sample.y); @@ -49,3 +49,5 @@ vec4 FUNCNAME(vec2 tc) { return sum; } + +#undef R