X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=fft_pass_effect.frag;h=fcffba786facade26a2ad2983126675528107708;hp=800653a0c979c2d5e98f71b8979c10d56b6e2943;hb=4a9f9844aec346c73a1e96d7164b3d993c619d06;hpb=5dfd8dfbd444210f9c9e3a0baf5c82b49e76e7ff diff --git a/fft_pass_effect.frag b/fft_pass_effect.frag index 800653a..fcffba7 100644 --- a/fft_pass_effect.frag +++ b/fft_pass_effect.frag @@ -7,8 +7,8 @@ uniform sampler2D PREFIX(support_tex); vec4 FUNCNAME(vec2 tc) { #if DIRECTION_VERTICAL vec4 support = texture2D(PREFIX(support_tex), vec2(tc.y * PREFIX(num_repeats), 0.0)); - vec4 c1 = INPUT(vec2(tc.x, 1.0 - (tc.y + support.x))); - vec4 c2 = INPUT(vec2(tc.x, 1.0 - (tc.y + support.y))); + vec4 c1 = INPUT(vec2(tc.x, tc.y + support.x)); + vec4 c2 = INPUT(vec2(tc.x, tc.y + support.y)); #else vec4 support = texture2D(PREFIX(support_tex), vec2(tc.x * PREFIX(num_repeats), 0.0)); vec4 c1 = INPUT(vec2(tc.x + support.x, tc.y)); @@ -22,3 +22,5 @@ vec4 FUNCNAME(vec2 tc) { // where * is complex multiplication. return c1 + support.z * c2 + support.w * vec4(-c2.y, c2.x, -c2.w, c2.z); } + +#undef DIRECTION_VERTICAL