Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Cleaned line-pattern diff in JS/Native #17

Merged
merged 1 commit into from
Jun 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/linepattern.vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ void main() {
float squish_scale = length(a_extrude) / length(u_antialiasingmatrix * a_extrude);

// how much features are squished in all directions by the perspectiveness
#ifndef MAPBOX_GL_JS
float perspective_scale = 1.0 / (1.0 - y * u_extra);
#else
float perspective_scale = 1.0 / (1.0 - min(y * u_extra, 0.9));
#endif

v_linewidth = vec2(outset, inset);
v_gamma_scale = perspective_scale * squish_scale;
Expand Down