Skip to content

Commit

Permalink
Merge pull request #648 from OpenGeoscience/fix-gaps-in-tiles
Browse files Browse the repository at this point in the history
Fix gaps in tiles when they aren't aligned.
  • Loading branch information
manthey authored Nov 28, 2016
2 parents b85183d + 097cb5d commit 044144e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gl/quadFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var gl_quadFeature = function (arg) {
'uniform highp vec2 crop;',
'void main(void) {',
' mediump vec4 color = texture2D(sampler2d, iTextureCoord);',
' if (iTextureCoord.s > crop.s || 1.0 - iTextureCoord.t > crop.t) {',
' if ((crop.s < 1.0 && iTextureCoord.s > crop.s) || (crop.t < 1.0 && 1.0 - iTextureCoord.t > crop.t)) {',
' discard;',
' }',
' color.w *= opacity;',
Expand Down

0 comments on commit 044144e

Please sign in to comment.