Update mapbox-gl-js submodule to v0.53.0
This commit is contained in:
@@ -20,6 +20,7 @@ MBGL_DEFINE_ATTRIBUTE(uint8_t, 1, a_fade_opacity);
|
||||
MBGL_DEFINE_ATTRIBUTE(uint8_t, 2, a_placed);
|
||||
MBGL_DEFINE_ATTRIBUTE(uint16_t, 3, a_size);
|
||||
MBGL_DEFINE_ATTRIBUTE(float, 1, a_offset);
|
||||
MBGL_DEFINE_ATTRIBUTE(float, 2, a_shift);
|
||||
|
||||
template <typename T, std::size_t N>
|
||||
struct a_data {
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
static_assert(sizeof(CollisionBoxProgram::LayoutVertex) == 16, "expected CollisionBoxVertex size");
|
||||
static_assert(sizeof(CollisionBoxProgram::LayoutVertex) == 24, "expected CollisionBoxVertex size");
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -15,7 +15,8 @@ namespace mbgl {
|
||||
using CollisionBoxLayoutAttributes = TypeList<
|
||||
attributes::a_pos,
|
||||
attributes::a_anchor_pos,
|
||||
attributes::a_extrude>;
|
||||
attributes::a_extrude,
|
||||
attributes::a_shift>;
|
||||
|
||||
using CollisionBoxDynamicAttributes = TypeList<attributes::a_placed>;
|
||||
|
||||
@@ -45,6 +46,10 @@ public:
|
||||
{{
|
||||
static_cast<int16_t>(::round(o.x)),
|
||||
static_cast<int16_t>(::round(o.y))
|
||||
}},
|
||||
{{
|
||||
0.0f,
|
||||
0.0f
|
||||
}}
|
||||
};
|
||||
}
|
||||
@@ -132,6 +137,10 @@ public:
|
||||
{{
|
||||
static_cast<int16_t>(::round(o.x)),
|
||||
static_cast<int16_t>(::round(o.y))
|
||||
}},
|
||||
{{
|
||||
0.0f,
|
||||
0.0f
|
||||
}}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace shaders {
|
||||
|
||||
const char* collision_box::name = "collision_box";
|
||||
const char* collision_box::vertexSource = source() + 9956;
|
||||
const char* collision_box::fragmentSource = source() + 10602;
|
||||
const char* collision_box::fragmentSource = source() + 10635;
|
||||
|
||||
// Uncompressed source of collision_box.vertex.glsl:
|
||||
/*
|
||||
@@ -16,6 +16,7 @@ attribute vec2 a_pos;
|
||||
attribute vec2 a_anchor_pos;
|
||||
attribute vec2 a_extrude;
|
||||
attribute vec2 a_placed;
|
||||
attribute vec2 a_shift;
|
||||
|
||||
uniform mat4 u_matrix;
|
||||
uniform vec2 u_extrude_scale;
|
||||
@@ -33,7 +34,7 @@ void main() {
|
||||
4.0);
|
||||
|
||||
gl_Position = u_matrix * vec4(a_pos, 0.0, 1.0);
|
||||
gl_Position.xy += a_extrude * u_extrude_scale * gl_Position.w * collision_perspective_ratio;
|
||||
gl_Position.xy += (a_extrude + a_shift) * u_extrude_scale * gl_Position.w * collision_perspective_ratio;
|
||||
|
||||
v_placed = a_placed.x;
|
||||
v_notUsed = a_placed.y;
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* collision_circle::name = "collision_circle";
|
||||
const char* collision_circle::vertexSource = source() + 10825;
|
||||
const char* collision_circle::fragmentSource = source() + 11741;
|
||||
const char* collision_circle::vertexSource = source() + 10858;
|
||||
const char* collision_circle::fragmentSource = source() + 11774;
|
||||
|
||||
// Uncompressed source of collision_circle.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* debug::name = "debug";
|
||||
const char* debug::vertexSource = source() + 12417;
|
||||
const char* debug::fragmentSource = source() + 12513;
|
||||
const char* debug::vertexSource = source() + 12450;
|
||||
const char* debug::fragmentSource = source() + 12546;
|
||||
|
||||
// Uncompressed source of debug.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* extrusion_texture::name = "extrusion_texture";
|
||||
const char* extrusion_texture::vertexSource = source() + 27521;
|
||||
const char* extrusion_texture::fragmentSource = source() + 27701;
|
||||
const char* extrusion_texture::vertexSource = source() + 27554;
|
||||
const char* extrusion_texture::fragmentSource = source() + 27734;
|
||||
|
||||
// Uncompressed source of extrusion_texture.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* fill::name = "fill";
|
||||
const char* fill::vertexSource = source() + 12577;
|
||||
const char* fill::fragmentSource = source() + 13221;
|
||||
const char* fill::vertexSource = source() + 12610;
|
||||
const char* fill::fragmentSource = source() + 13254;
|
||||
|
||||
// Uncompressed source of fill.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* fill_extrusion::name = "fill_extrusion";
|
||||
const char* fill_extrusion::vertexSource = source() + 21205;
|
||||
const char* fill_extrusion::fragmentSource = source() + 23088;
|
||||
const char* fill_extrusion::vertexSource = source() + 21238;
|
||||
const char* fill_extrusion::fragmentSource = source() + 23121;
|
||||
|
||||
// Uncompressed source of fill_extrusion.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* fill_extrusion_pattern::name = "fill_extrusion_pattern";
|
||||
const char* fill_extrusion_pattern::vertexSource = source() + 23204;
|
||||
const char* fill_extrusion_pattern::fragmentSource = source() + 26124;
|
||||
const char* fill_extrusion_pattern::vertexSource = source() + 23237;
|
||||
const char* fill_extrusion_pattern::fragmentSource = source() + 26157;
|
||||
|
||||
// Uncompressed source of fill_extrusion_pattern.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* fill_outline::name = "fill_outline";
|
||||
const char* fill_outline::vertexSource = source() + 13645;
|
||||
const char* fill_outline::fragmentSource = source() + 14470;
|
||||
const char* fill_outline::vertexSource = source() + 13678;
|
||||
const char* fill_outline::fragmentSource = source() + 14503;
|
||||
|
||||
// Uncompressed source of fill_outline.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* fill_outline_pattern::name = "fill_outline_pattern";
|
||||
const char* fill_outline_pattern::vertexSource = source() + 15059;
|
||||
const char* fill_outline_pattern::fragmentSource = source() + 16919;
|
||||
const char* fill_outline_pattern::vertexSource = source() + 15092;
|
||||
const char* fill_outline_pattern::fragmentSource = source() + 16952;
|
||||
|
||||
// Uncompressed source of fill_outline_pattern.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* fill_pattern::name = "fill_pattern";
|
||||
const char* fill_pattern::vertexSource = source() + 18226;
|
||||
const char* fill_pattern::fragmentSource = source() + 20005;
|
||||
const char* fill_pattern::vertexSource = source() + 18259;
|
||||
const char* fill_pattern::fragmentSource = source() + 20038;
|
||||
|
||||
// Uncompressed source of fill_pattern.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* hillshade::name = "hillshade";
|
||||
const char* hillshade::vertexSource = source() + 29307;
|
||||
const char* hillshade::fragmentSource = source() + 29478;
|
||||
const char* hillshade::vertexSource = source() + 29340;
|
||||
const char* hillshade::fragmentSource = source() + 29511;
|
||||
|
||||
// Uncompressed source of hillshade.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* hillshade_prepare::name = "hillshade_prepare";
|
||||
const char* hillshade_prepare::vertexSource = source() + 27892;
|
||||
const char* hillshade_prepare::fragmentSource = source() + 28185;
|
||||
const char* hillshade_prepare::vertexSource = source() + 27925;
|
||||
const char* hillshade_prepare::fragmentSource = source() + 28218;
|
||||
|
||||
// Uncompressed source of hillshade_prepare.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* line::name = "line";
|
||||
const char* line::vertexSource = source() + 30552;
|
||||
const char* line::fragmentSource = source() + 33476;
|
||||
const char* line::vertexSource = source() + 30585;
|
||||
const char* line::fragmentSource = source() + 33509;
|
||||
|
||||
// Uncompressed source of line.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* line_gradient::name = "line_gradient";
|
||||
const char* line_gradient::vertexSource = source() + 34302;
|
||||
const char* line_gradient::fragmentSource = source() + 37021;
|
||||
const char* line_gradient::vertexSource = source() + 34335;
|
||||
const char* line_gradient::fragmentSource = source() + 37054;
|
||||
|
||||
// Uncompressed source of line_gradient.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* line_pattern::name = "line_pattern";
|
||||
const char* line_pattern::vertexSource = source() + 37808;
|
||||
const char* line_pattern::fragmentSource = source() + 41129;
|
||||
const char* line_pattern::vertexSource = source() + 37841;
|
||||
const char* line_pattern::fragmentSource = source() + 41162;
|
||||
|
||||
// Uncompressed source of line_pattern.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* line_sdf::name = "line_sdf";
|
||||
const char* line_sdf::vertexSource = source() + 43442;
|
||||
const char* line_sdf::fragmentSource = source() + 47056;
|
||||
const char* line_sdf::vertexSource = source() + 43475;
|
||||
const char* line_sdf::fragmentSource = source() + 47089;
|
||||
|
||||
// Uncompressed source of line_sdf.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* raster::name = "raster";
|
||||
const char* raster::vertexSource = source() + 48559;
|
||||
const char* raster::fragmentSource = source() + 48908;
|
||||
const char* raster::vertexSource = source() + 48592;
|
||||
const char* raster::fragmentSource = source() + 48941;
|
||||
|
||||
// Uncompressed source of raster.vertex.glsl:
|
||||
/*
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* symbol_icon::name = "symbol_icon";
|
||||
const char* symbol_icon::vertexSource = source() + 49967;
|
||||
const char* symbol_icon::fragmentSource = source() + 52621;
|
||||
const char* symbol_icon::vertexSource = source() + 50000;
|
||||
const char* symbol_icon::fragmentSource = source() + 52654;
|
||||
|
||||
// Uncompressed source of symbol_icon.vertex.glsl:
|
||||
/*
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace mbgl {
|
||||
namespace shaders {
|
||||
|
||||
const char* symbol_sdf::name = "symbol_sdf";
|
||||
const char* symbol_sdf::vertexSource = source() + 53026;
|
||||
const char* symbol_sdf::fragmentSource = source() + 57066;
|
||||
const char* symbol_sdf::vertexSource = source() + 53059;
|
||||
const char* symbol_sdf::fragmentSource = source() + 57099;
|
||||
|
||||
// Uncompressed source of symbol_sdf.vertex.glsl:
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user