diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2018-04-12 14:39:38 +0200 |
---|---|---|
committer | Łukasz Paczos <lukas.paczos@gmail.com> | 2018-04-12 16:10:18 +0200 |
commit | d36ace4cc1405f9e4bb69f8690a34a94a3742d40 (patch) | |
tree | 625cebbc8148e4dad879e4d32474ca122a262347 /src | |
parent | ff11cb20163caddf5e31ebdaeaafa0e1a9e456ec (diff) | |
download | qtlocation-mapboxgl-upstream/lp-js-submodule-bump.tar.gz |
[core] update mapbox-gl-js submoduleupstream/lp-js-submodule-bump
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/shaders/line.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/shaders/line.cpp b/src/mbgl/shaders/line.cpp index c700295a15..68d2dcc468 100644 --- a/src/mbgl/shaders/line.cpp +++ b/src/mbgl/shaders/line.cpp @@ -31,6 +31,7 @@ uniform vec2 u_gl_units_to_pixels; varying vec2 v_normal; varying vec2 v_width2; varying float v_gamma_scale; +varying highp float v_linesofar; #ifndef HAS_UNIFORM_u_color @@ -131,6 +132,8 @@ void main() { vec2 a_extrude = a_data.xy - 128.0; float a_direction = mod(a_data.z, 4.0) - 1.0; + v_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * 2.0; + vec2 pos = a_pos_normal.xy; // x is 1 if it's a round cap, 0 otherwise |