Skip to content

Commit

Permalink
fix fill patterns for overscaled tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Mar 10, 2015
1 parent d6a80ef commit 794c1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/render/draw_fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function drawFill(painter, layer, posMatrix, tile) {
gl.uniform1f(shader.u_opacity, opacity);
gl.uniform1f(shader.u_mix, image.t);

var factor = 8 / Math.pow(2, painter.transform.tileZoom - tile.zoom);
var factor = (4096 / tile.tileSize) / Math.pow(2, painter.transform.tileZoom - tile.zoom);

var matrixA = mat3.create();
mat3.scale(matrixA, matrixA, [
Expand Down

0 comments on commit 794c1eb

Please sign in to comment.