fix circles at very high zoom levels

5c8be4b848
This commit is contained in:
Ansis Brammanis
2015-09-02 15:14:14 -04:00
parent 0ff7cf20e9
commit cccae7d153
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ void main(void) {
vec4 extrude = u_exmatrix * vec4(v_extrude * u_size, 0, 0);
// multiply a_pos by 0.5, since we had it * 2 in order to sneak
// in extrusion data
gl_Position = u_matrix * vec4(a_pos * 0.5, 0, 1);
gl_Position = u_matrix * vec4(floor(a_pos * 0.5), 0, 1);
// gl_Position is divided by gl_Position.w after this shader runs.
// Multiply the extrude by it so that it isn't affected by it.