Skip to content

Commit

Permalink
Merge c0a6b9d into be96de8
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Feb 13, 2020
2 parents be96de8 + c0a6b9d commit 6800555
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/layer-browser/src/data-samples.js
Expand Up @@ -104,9 +104,11 @@ export const zigzag = [
])
},
{
// A-B-A
path: [
[positionOrigin[0] - 0.005, positionOrigin[1] + 0.005],
[positionOrigin[0] - 0.005, positionOrigin[1] - 0.005]
[positionOrigin[0] - 0.005, positionOrigin[1] - 0.005],
[positionOrigin[0] - 0.005, positionOrigin[1] + 0.005]
]
}
];
Expand Down
2 changes: 1 addition & 1 deletion modules/layers/src/path-layer/path-layer-vertex.glsl.js
Expand Up @@ -97,7 +97,7 @@ vec3 lineJoin(
float cosHalfA = abs(dot(dirA, miterVec));
// -1: right, 1: left
float turnDirection = flipIfTrue(dirA.x * dirB.y > dirA.y * dirB.x);
float turnDirection = flipIfTrue(dirA.x * dirB.y >= dirA.y * dirB.x);
// relative position to the corner:
// -1: inside (smaller side of the angle)
Expand Down
Binary file modified test/render/golden-images/path-lnglat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/render/golden-images/path-rounded.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6800555

Please sign in to comment.