summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders/lens_distorted.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gles2/shaders/lens_distorted.glsl')
-rw-r--r--drivers/gles2/shaders/lens_distorted.glsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gles2/shaders/lens_distorted.glsl b/drivers/gles2/shaders/lens_distorted.glsl
index d541db9bf9..81898a75a5 100644
--- a/drivers/gles2/shaders/lens_distorted.glsl
+++ b/drivers/gles2/shaders/lens_distorted.glsl
@@ -1,6 +1,15 @@
/* clang-format off */
[vertex]
+#ifdef USE_GLES_OVER_GL
+#define lowp
+#define mediump
+#define highp
+#else
+precision highp float;
+precision highp int;
+#endif
+
attribute highp vec2 vertex; // attrib:0
/* clang-format on */
@@ -20,6 +29,15 @@ void main() {
/* clang-format off */
[fragment]
+#ifdef USE_GLES_OVER_GL
+#define lowp
+#define mediump
+#define highp
+#else
+precision mediump float;
+precision highp int;
+#endif
+
uniform sampler2D source; //texunit:0
/* clang-format on */