Skip to content

Commit

Permalink
fix precision issues on iOS, close #750
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jun 11, 2015
1 parent 5875581 commit d23cdc6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion shaders/icon.vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ attribute float a_opacity;

// matrix is for the vertex position, exmatrix is for rotating and projecting
// the extrusion vector.
uniform mat4 u_matrix;
uniform highp mat4 u_matrix;
uniform mat4 u_exmatrix;
uniform float u_zoom;
uniform float u_fadedist;
Expand Down
2 changes: 1 addition & 1 deletion shaders/line.vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ attribute float a_blur;

// matrix is for the vertex position, exmatrix is for rotating and projecting
// the extrusion vector.
uniform mat4 u_matrix;
uniform highp mat4 u_matrix;

// shared
uniform float u_ratio;
Expand Down
2 changes: 1 addition & 1 deletion shaders/linepattern.vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ attribute float a_opacity;

// matrix is for the vertex position, exmatrix is for rotating and projecting
// the extrusion vector.
uniform mat4 u_matrix;
uniform highp mat4 u_matrix;
uniform mat4 u_exmatrix;

// shared
Expand Down
2 changes: 1 addition & 1 deletion shaders/linesdfpattern.vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ attribute float a_blur;

// matrix is for the vertex position, exmatrix is for rotating and projecting
// the extrusion vector.
uniform mat4 u_matrix;
uniform highp mat4 u_matrix;
uniform mat4 u_exmatrix;

uniform float u_ratio;
Expand Down
2 changes: 1 addition & 1 deletion shaders/outline.vertex.glsl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
attribute vec2 a_pos;
attribute vec4 a_color;

uniform mat4 u_matrix;
uniform highp mat4 u_matrix;
uniform vec2 u_world;

varying vec4 v_color;
Expand Down
2 changes: 1 addition & 1 deletion shaders/sdf.vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ attribute float a_gamma;

// matrix is for the vertex position, exmatrix is for rotating and projecting
// the extrusion vector.
uniform mat4 u_matrix;
uniform highp mat4 u_matrix;
uniform mat4 u_exmatrix;

uniform float u_zoom;
Expand Down

0 comments on commit d23cdc6

Please sign in to comment.