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 #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
uniform vec4 u_color; uniform vec4 u_color;
void main() { void main() {
@@ -53,7 +53,7 @@ main(){
$$ $$
#ifdef GLES #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
varying vec4 color; varying vec4 color;
void void
@@ -44,7 +44,7 @@ main(){
$$ $$
#ifdef GLES #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
varying vec4 color; varying vec4 color;
void void
+1 -1
View File
@@ -24,7 +24,7 @@ main(){
} }
$$ $$
#ifdef GLES #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
uniform sampler2D tex; uniform sampler2D tex;
uniform float u_fade; uniform float u_fade;
@@ -24,8 +24,8 @@ main(){
} }
$$ $$
#extension GL_OES_standard_derivatives : enable #extension GL_OES_standard_derivatives : enable
#ifndef DESKTOP_QUIRKS #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
uniform sampler2D tex; uniform sampler2D tex;
uniform float u_mode; uniform float u_mode;
@@ -31,7 +31,7 @@ $$
#extension GL_OES_standard_derivatives : enable #extension GL_OES_standard_derivatives : enable
#ifdef GLES #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
uniform vec4 u_color; uniform vec4 u_color;
uniform vec4 u_bgcolor; uniform vec4 u_bgcolor;
@@ -12,7 +12,7 @@ main(){
$$ $$
#ifdef GLES #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
uniform vec4 u_color; uniform vec4 u_color;
void void
@@ -14,7 +14,7 @@ void main() {
§ §
#ifdef GLES #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
uniform vec4 u_color; uniform vec4 u_color;
uniform sampler2D tex; uniform sampler2D tex;
@@ -15,7 +15,7 @@ main(){
$$ $$
#ifdef GLES #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
uniform vec4 u_color; uniform vec4 u_color;
uniform sampler2D tex; uniform sampler2D tex;
@@ -14,7 +14,7 @@ main(){
$$ $$
#ifdef GLES #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
uniform sampler2D tex; uniform sampler2D tex;
uniform float u_alpha; uniform float u_alpha;