diff options
-rw-r--r-- | render/gles2/shaders/quad.frag | 5 | ||||
-rw-r--r-- | render/gles2/shaders/tex_external.frag | 5 | ||||
-rw-r--r-- | render/gles2/shaders/tex_rgba.frag | 5 | ||||
-rw-r--r-- | render/gles2/shaders/tex_rgbx.frag | 5 |
4 files changed, 20 insertions, 0 deletions
diff --git a/render/gles2/shaders/quad.frag b/render/gles2/shaders/quad.frag index f9712797..97d3a31c 100644 --- a/render/gles2/shaders/quad.frag +++ b/render/gles2/shaders/quad.frag @@ -1,4 +1,9 @@ +#ifdef GL_FRAGMENT_PRECISION_HIGH +precision highp float; +#else precision mediump float; +#endif + varying vec4 v_color; varying vec2 v_texcoord; uniform vec4 color; diff --git a/render/gles2/shaders/tex_external.frag b/render/gles2/shaders/tex_external.frag index 05eac503..73909fe0 100644 --- a/render/gles2/shaders/tex_external.frag +++ b/render/gles2/shaders/tex_external.frag @@ -1,6 +1,11 @@ #extension GL_OES_EGL_image_external : require +#ifdef GL_FRAGMENT_PRECISION_HIGH +precision highp float; +#else precision mediump float; +#endif + varying vec2 v_texcoord; uniform samplerExternalOES texture0; uniform float alpha; diff --git a/render/gles2/shaders/tex_rgba.frag b/render/gles2/shaders/tex_rgba.frag index c2e17a90..c0a0dea6 100644 --- a/render/gles2/shaders/tex_rgba.frag +++ b/render/gles2/shaders/tex_rgba.frag @@ -1,4 +1,9 @@ +#ifdef GL_FRAGMENT_PRECISION_HIGH +precision highp float; +#else precision mediump float; +#endif + varying vec2 v_texcoord; uniform sampler2D tex; uniform float alpha; diff --git a/render/gles2/shaders/tex_rgbx.frag b/render/gles2/shaders/tex_rgbx.frag index 42ddf92f..ae40ad53 100644 --- a/render/gles2/shaders/tex_rgbx.frag +++ b/render/gles2/shaders/tex_rgbx.frag @@ -1,4 +1,9 @@ +#ifdef GL_FRAGMENT_PRECISION_HIGH +precision highp float; +#else precision mediump float; +#endif + varying vec2 v_texcoord; uniform sampler2D tex; uniform float alpha; |