fix: use same precision in vertex and fragment shaders

should fix #153
This commit is contained in:
Hannes Janetzek
2015-06-18 00:07:20 +02:00
parent d8fb724d61
commit 381907526e
10 changed files with 11 additions and 11 deletions
@@ -8,7 +8,7 @@ void main() {
}
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
void main() {
@@ -53,7 +53,7 @@ main(){
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
varying vec4 color;
void
@@ -44,7 +44,7 @@ main(){
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
varying vec4 color;
void
+1 -1
View File
@@ -24,7 +24,7 @@ main(){
}
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform sampler2D tex;
uniform float u_fade;
@@ -24,8 +24,8 @@ main(){
}
$$
#extension GL_OES_standard_derivatives : enable
#ifndef DESKTOP_QUIRKS
precision mediump float;
#ifdef GLES
precision highp float;
#endif
uniform sampler2D tex;
uniform float u_mode;
@@ -31,7 +31,7 @@ $$
#extension GL_OES_standard_derivatives : enable
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
uniform vec4 u_bgcolor;
@@ -12,7 +12,7 @@ main(){
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
void
@@ -14,7 +14,7 @@ void main() {
§
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
uniform sampler2D tex;
@@ -15,7 +15,7 @@ main(){
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
uniform sampler2D tex;
@@ -14,7 +14,7 @@ main(){
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform sampler2D tex;
uniform float u_alpha;