aboutsummaryrefslogtreecommitdiff
path: root/system/shaders/convolution-4x4.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'system/shaders/convolution-4x4.glsl')
-rw-r--r--system/shaders/convolution-4x4.glsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/shaders/convolution-4x4.glsl b/system/shaders/convolution-4x4.glsl
index d41b127294..6413cd6819 100644
--- a/system/shaders/convolution-4x4.glsl
+++ b/system/shaders/convolution-4x4.glsl
@@ -18,11 +18,19 @@
*
*/
+#ifdef GL_ES
+ precision highp float;
+#endif
+
uniform sampler2D img;
uniform vec2 stepxy;
uniform float m_stretch;
varying vec2 cord;
+#ifdef GL_ES
+ uniform float m_alpha;
+#endif
+
#if (USE1DTEXTURE)
uniform sampler1D kernelTex;
#else
@@ -103,7 +111,12 @@ vec4 process()
line(xystart.y + stepxy.y * 2.0, xpos, linetaps) * columntaps.b +
line(xystart.y + stepxy.y * 3.0, xpos, linetaps) * columntaps.a;
+#ifdef GL_ES
+ rgb.a = m_alpha;
+#else
rgb.a = gl_Color.a;
+#endif
+
return rgb;
}