diff options
Diffstat (limited to 'drivers/gles2/shaders/canvas.glsl')
-rw-r--r-- | drivers/gles2/shaders/canvas.glsl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gles2/shaders/canvas.glsl b/drivers/gles2/shaders/canvas.glsl index 01a90d0725..614124e6d9 100644 --- a/drivers/gles2/shaders/canvas.glsl +++ b/drivers/gles2/shaders/canvas.glsl @@ -2,6 +2,7 @@ [vertex] #ifdef USE_GLES_OVER_GL +#define lowp #define mediump #define highp #else @@ -31,8 +32,6 @@ uniform vec4 src_rect; uniform highp float time; - - #ifdef USE_LIGHTING // light matrices @@ -62,7 +61,6 @@ const bool at_light_pass = true; const bool at_light_pass = false; #endif - /* clang-format off */ VERTEX_SHADER_GLOBALS @@ -80,7 +78,6 @@ vec2 select(vec2 a, vec2 b, bvec2 c) { void main() { - vec4 color = color_attrib; #ifdef USE_INSTANCING @@ -159,13 +156,13 @@ VERTEX_SHADER_CODE #endif #endif - } /* clang-format off */ [fragment] #ifdef USE_GLES_OVER_GL +#define lowp #define mediump #define highp #else @@ -231,7 +228,6 @@ const bool at_light_pass = false; uniform bool use_default_normal; - /* clang-format off */ FRAGMENT_SHADER_GLOBALS |