fix: use same precision in vertex and fragment shaders

should fix #153
This commit is contained in:
Hannes Janetzek 2015-06-17 23:51:05 +02:00
parent d8fb724d61
commit 381907526e
10 changed files with 11 additions and 11 deletions

View File

@ -8,7 +8,7 @@ void main() {
}
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
void main() {

View File

@ -53,7 +53,7 @@ main(){
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
varying vec4 color;
void

View File

@ -44,7 +44,7 @@ main(){
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
varying vec4 color;
void

View File

@ -24,7 +24,7 @@ main(){
}
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform sampler2D tex;
uniform float u_fade;

View File

@ -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;

View File

@ -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;

View File

@ -12,7 +12,7 @@ main(){
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
void

View File

@ -14,7 +14,7 @@ void main() {
§
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
uniform sampler2D tex;

View File

@ -15,7 +15,7 @@ main(){
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
uniform sampler2D tex;

View File

@ -14,7 +14,7 @@ main(){
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform sampler2D tex;
uniform float u_alpha;