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 #ifdef GLES
precision mediump float; precision highp float;
#endif #endif
uniform vec4 u_color; uniform vec4 u_color;
void main() { void main() {

View File

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

View File

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

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;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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