summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video_shaders.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_video_shaders.glsl')
-rw-r--r--video/out/gl_video_shaders.glsl5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/gl_video_shaders.glsl b/video/out/gl_video_shaders.glsl
index f8aef48b9b..b95953bfa6 100644
--- a/video/out/gl_video_shaders.glsl
+++ b/video/out/gl_video_shaders.glsl
@@ -312,6 +312,11 @@ float[6] weights6(sampler2D lookup, float f) {
lo = min(lo, c); \
hi = max(hi, c);
+#define SAMPLE_POLAR_POTENTIAL(LUT, R, X, Y) \
+ if (length(vec2(X, Y) - fcoord)/R < 1.0) { \
+ SAMPLE_POLAR_HELPER(LUT, R, X, Y) \
+ }
+
#define SAMPLE_CONVOLUTION_POLAR_R(NAME, R, LUT, WEIGHTS_FN, ANTIRING) \
vec4 NAME(VIDEO_SAMPLER tex, vec2 texsize, vec2 texcoord) { \
vec2 pt = vec2(1.0) / texsize; \