summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders/canvas_shadow.glsl
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-12-21 15:56:05 +0100
committerGitHub <noreply@github.com>2018-12-21 15:56:05 +0100
commita0d8bfb0d2ff50f4de7837767611688b962fd564 (patch)
tree164f3be0f76c816763d87cf07b9901d3f3cc81c8 /drivers/gles2/shaders/canvas_shadow.glsl
parent0d3c6fae35d8025aee215275ae470746b0860578 (diff)
parent57416bfbce17905e71d143478a796dc6b27ba4f7 (diff)
Merge pull request #24529 from akien-mga/opengl-2.1-lowp
GLES2: Define 'lowp' for OpenGL 2.1
Diffstat (limited to 'drivers/gles2/shaders/canvas_shadow.glsl')
-rw-r--r--drivers/gles2/shaders/canvas_shadow.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gles2/shaders/canvas_shadow.glsl b/drivers/gles2/shaders/canvas_shadow.glsl
index 51af004e39..d39212826e 100644
--- a/drivers/gles2/shaders/canvas_shadow.glsl
+++ b/drivers/gles2/shaders/canvas_shadow.glsl
@@ -2,6 +2,7 @@
[vertex]
#ifdef USE_GLES_OVER_GL
+#define lowp
#define mediump
#define highp
#else
@@ -29,6 +30,7 @@ void main() {
[fragment]
#ifdef USE_GLES_OVER_GL
+#define lowp
#define mediump
#define highp
#else
@@ -39,7 +41,6 @@ precision mediump int;
varying highp vec4 position_interp;
/* clang-format on */
-
void main() {
highp float depth = ((position_interp.z / position_interp.w) + 1.0) * 0.5 + 0.0; // bias