Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
fix: use same precision in vertex and fragment shaders
Browse files Browse the repository at this point in the history
should fix #153
  • Loading branch information
hjanetzek committed Jun 17, 2015
1 parent d8fb724 commit 3819075
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion vtm/resources/assets/shaders/base_shader.glsl
Expand Up @@ -8,7 +8,7 @@ void main() {
}
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
void main() {
Expand Down
2 changes: 1 addition & 1 deletion vtm/resources/assets/shaders/extrusion_layer_ext.glsl
Expand Up @@ -53,7 +53,7 @@ main(){
$$

#ifdef GLES
precision mediump float;
precision highp float;
#endif
varying vec4 color;
void
Expand Down
2 changes: 1 addition & 1 deletion vtm/resources/assets/shaders/extrusion_layer_mesh.glsl
Expand Up @@ -44,7 +44,7 @@ main(){
$$

#ifdef GLES
precision mediump float;
precision highp float;
#endif
varying vec4 color;
void
Expand Down
2 changes: 1 addition & 1 deletion vtm/resources/assets/shaders/line_aa.glsl
Expand Up @@ -24,7 +24,7 @@ main(){
}
$$
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform sampler2D tex;
uniform float u_fade;
Expand Down
4 changes: 2 additions & 2 deletions vtm/resources/assets/shaders/line_aa_proj.glsl
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion vtm/resources/assets/shaders/linetex_layer.glsl
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion vtm/resources/assets/shaders/mesh_layer_2D.glsl
Expand Up @@ -12,7 +12,7 @@ main(){
$$

#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
void
Expand Down
2 changes: 1 addition & 1 deletion vtm/resources/assets/shaders/poly_texture.glsl
Expand Up @@ -14,7 +14,7 @@ void main() {

§
#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
uniform sampler2D tex;
Expand Down
2 changes: 1 addition & 1 deletion vtm/resources/assets/shaders/polygon_layer_tex.glsl
Expand Up @@ -15,7 +15,7 @@ main(){
$$

#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform vec4 u_color;
uniform sampler2D tex;
Expand Down
2 changes: 1 addition & 1 deletion vtm/resources/assets/shaders/texture_alpha.glsl
Expand Up @@ -14,7 +14,7 @@ main(){
$$

#ifdef GLES
precision mediump float;
precision highp float;
#endif
uniform sampler2D tex;
uniform float u_alpha;
Expand Down

0 comments on commit 3819075

Please sign in to comment.