summaryrefslogtreecommitdiff
path: root/src/mbgl/shaders/circle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/shaders/circle.cpp')
-rw-r--r--src/mbgl/shaders/circle.cpp497
1 files changed, 221 insertions, 276 deletions
diff --git a/src/mbgl/shaders/circle.cpp b/src/mbgl/shaders/circle.cpp
index c14335914b..ded6979634 100644
--- a/src/mbgl/shaders/circle.cpp
+++ b/src/mbgl/shaders/circle.cpp
@@ -1,287 +1,232 @@
// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.
#include <mbgl/shaders/circle.hpp>
+#include <mbgl/util/compression.hpp>
+
+#include <cstdint>
namespace mbgl {
namespace shaders {
const char* circle::name = "circle";
-const char* circle::vertexSource = R"MBGL_SHADER(
-uniform mat4 u_matrix;
-uniform bool u_scale_with_map;
-uniform bool u_pitch_with_map;
-uniform vec2 u_extrude_scale;
-uniform highp float u_camera_to_center_distance;
-
-attribute vec2 a_pos;
-
-
-#ifndef HAS_UNIFORM_u_color
-uniform lowp float a_color_t;
-attribute highp vec4 a_color;
-varying highp vec4 color;
-#else
-uniform highp vec4 u_color;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_radius
-uniform lowp float a_radius_t;
-attribute mediump vec2 a_radius;
-varying mediump float radius;
-#else
-uniform mediump float u_radius;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_blur
-uniform lowp float a_blur_t;
-attribute lowp vec2 a_blur;
-varying lowp float blur;
-#else
-uniform lowp float u_blur;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_opacity
-uniform lowp float a_opacity_t;
-attribute lowp vec2 a_opacity;
-varying lowp float opacity;
-#else
-uniform lowp float u_opacity;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_stroke_color
-uniform lowp float a_stroke_color_t;
-attribute highp vec4 a_stroke_color;
-varying highp vec4 stroke_color;
-#else
-uniform highp vec4 u_stroke_color;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_stroke_width
-uniform lowp float a_stroke_width_t;
-attribute mediump vec2 a_stroke_width;
-varying mediump float stroke_width;
-#else
-uniform mediump float u_stroke_width;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_stroke_opacity
-uniform lowp float a_stroke_opacity_t;
-attribute lowp vec2 a_stroke_opacity;
-varying lowp float stroke_opacity;
-#else
-uniform lowp float u_stroke_opacity;
-#endif
-
-
-varying vec3 v_data;
-
-void main(void) {
-
-#ifndef HAS_UNIFORM_u_color
- color = unpack_mix_vec4(a_color, a_color_t);
-#else
- highp vec4 color = u_color;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_radius
- radius = unpack_mix_vec2(a_radius, a_radius_t);
-#else
- mediump float radius = u_radius;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_blur
- blur = unpack_mix_vec2(a_blur, a_blur_t);
-#else
- lowp float blur = u_blur;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_opacity
- opacity = unpack_mix_vec2(a_opacity, a_opacity_t);
-#else
- lowp float opacity = u_opacity;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_stroke_color
- stroke_color = unpack_mix_vec4(a_stroke_color, a_stroke_color_t);
-#else
- highp vec4 stroke_color = u_stroke_color;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_stroke_width
- stroke_width = unpack_mix_vec2(a_stroke_width, a_stroke_width_t);
-#else
- mediump float stroke_width = u_stroke_width;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_stroke_opacity
- stroke_opacity = unpack_mix_vec2(a_stroke_opacity, a_stroke_opacity_t);
-#else
- lowp float stroke_opacity = u_stroke_opacity;
-#endif
-
-
- // unencode the extrusion vector that we snuck into the a_pos vector
- vec2 extrude = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);
-
- // multiply a_pos by 0.5, since we had it * 2 in order to sneak
- // in extrusion data
- vec2 circle_center = floor(a_pos * 0.5);
- if (u_pitch_with_map) {
- vec2 corner_position = circle_center;
- if (u_scale_with_map) {
- corner_position += extrude * (radius + stroke_width) * u_extrude_scale;
- } else {
- // Pitching the circle with the map effectively scales it with the map
- // To counteract the effect for pitch-scale: viewport, we rescale the
- // whole circle based on the pitch scaling effect at its central point
- vec4 projected_center = u_matrix * vec4(circle_center, 0, 1);
- corner_position += extrude * (radius + stroke_width) * u_extrude_scale * (projected_center.w / u_camera_to_center_distance);
- }
-
- gl_Position = u_matrix * vec4(corner_position, 0, 1);
- } else {
- gl_Position = u_matrix * vec4(circle_center, 0, 1);
-
- if (u_scale_with_map) {
- gl_Position.xy += extrude * (radius + stroke_width) * u_extrude_scale * u_camera_to_center_distance;
- } else {
- gl_Position.xy += extrude * (radius + stroke_width) * u_extrude_scale * gl_Position.w;
- }
- }
-
- // This is a minimum blur distance that serves as a faux-antialiasing for
- // the circle. since blur is a ratio of the circle's size and the intent is
- // to keep the blur at roughly 1px, the two are inversely related.
- lowp float antialiasblur = 1.0 / DEVICE_PIXEL_RATIO / (radius + stroke_width);
-
- v_data = vec3(extrude.x, extrude.y, antialiasblur);
-}
-
-)MBGL_SHADER";
-const char* circle::fragmentSource = R"MBGL_SHADER(
-
-#ifndef HAS_UNIFORM_u_color
-varying highp vec4 color;
-#else
-uniform highp vec4 u_color;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_radius
-varying mediump float radius;
-#else
-uniform mediump float u_radius;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_blur
-varying lowp float blur;
-#else
-uniform lowp float u_blur;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_opacity
-varying lowp float opacity;
-#else
-uniform lowp float u_opacity;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_stroke_color
-varying highp vec4 stroke_color;
-#else
-uniform highp vec4 u_stroke_color;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_stroke_width
-varying mediump float stroke_width;
-#else
-uniform mediump float u_stroke_width;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_stroke_opacity
-varying lowp float stroke_opacity;
-#else
-uniform lowp float u_stroke_opacity;
-#endif
-
-
-varying vec3 v_data;
-
-void main() {
-
-#ifdef HAS_UNIFORM_u_color
- highp vec4 color = u_color;
-#endif
-
-
-#ifdef HAS_UNIFORM_u_radius
- mediump float radius = u_radius;
-#endif
-
-
-#ifdef HAS_UNIFORM_u_blur
- lowp float blur = u_blur;
-#endif
-
-
-#ifdef HAS_UNIFORM_u_opacity
- lowp float opacity = u_opacity;
-#endif
-
-
-#ifdef HAS_UNIFORM_u_stroke_color
- highp vec4 stroke_color = u_stroke_color;
-#endif
-
-
-#ifdef HAS_UNIFORM_u_stroke_width
- mediump float stroke_width = u_stroke_width;
-#endif
-
-
-#ifdef HAS_UNIFORM_u_stroke_opacity
- lowp float stroke_opacity = u_stroke_opacity;
-#endif
-
-
- vec2 extrude = v_data.xy;
- float extrude_length = length(extrude);
-
- lowp float antialiasblur = v_data.z;
- float antialiased_blur = -max(blur, antialiasblur);
-
- float opacity_t = smoothstep(0.0, antialiased_blur, extrude_length - 1.0);
-
- float color_t = stroke_width < 0.01 ? 0.0 : smoothstep(
- antialiased_blur,
- 0.0,
- extrude_length - radius / (radius + stroke_width)
- );
-
- gl_FragColor = opacity_t * mix(color * opacity, stroke_color * stroke_opacity, color_t);
-
-#ifdef OVERDRAW_INSPECTOR
- gl_FragColor = vec4(1.0);
-#endif
-}
-
-)MBGL_SHADER";
+const char* circle::vertexSource = [] () {
+ static const uint8_t compressed[] = {
+ 0x78, 0xda, 0xb5, 0x57, 0xcb, 0x6e, 0xdc, 0x36,
+ 0x14, 0xdd, 0xcf, 0x57, 0x10, 0xc8, 0xa2, 0xe3,
+ 0x44, 0x1e, 0x3f, 0x92, 0x6c, 0x3a, 0xf0, 0x22,
+ 0x68, 0x5d, 0xd4, 0x40, 0xdb, 0x18, 0x69, 0x52,
+ 0x74, 0x27, 0x70, 0x24, 0xca, 0x62, 0x47, 0x12,
+ 0x05, 0x8a, 0x9a, 0x47, 0x0b, 0xff, 0x7b, 0xef,
+ 0x25, 0x29, 0x89, 0xd4, 0x83, 0x4e, 0x8b,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9d, 0xcc,
+ 0x0d, 0xd6, 0x7c, 0x6d, 0xbc, 0x5d, 0xdb, 0xad,
+ 0xdf, 0x80, 0x9e, 0xee, 0x11, 0xbf, 0x03, 0xdd,
+ 0x66, 0x30, 0xf1, 0x79, 0xf5, 0x37, 0xfa, 0x66,
+ 0x94, 0xc5
+ };
+ static std::string decompressed = util::decompress(std::string(reinterpret_cast<const char*>(compressed), sizeof(compressed)));
+ return decompressed.c_str();
+}();
+const char* circle::fragmentSource = [] () {
+ static const uint8_t compressed[] = {
+ 0x78, 0xda, 0x8d, 0x53, 0xcb, 0x6e, 0xdb, 0x30,
+ 0x10, 0xbc, 0xf3, 0x2b, 0x16, 0xc8, 0x45, 0x76,
+ 0x15, 0xd7, 0x69, 0x7b, 0xaa, 0x5b, 0x14, 0x41,
+ 0x9a, 0xa0, 0x39, 0x34, 0x2e, 0x9c, 0x3e, 0x8e,
+ 0x04, 0x6b, 0x51, 0x32, 0x51, 0x49, 0x34, 0x24,
+ 0xca, 0x71, 0x1a, 0xf4, 0xdf, 0xcb, 0x97, 0x1c,
+ 0x92, 0x7a, 0x45, 0x17, 0x49, 0x9c, 0xdd, 0x99,
+ 0xe5, 0xee, 0x2c, 0x3a, 0x63, 0x69, 0x99, 0xd0,
+ 0x14, 0xbe, 0x5c, 0xde, 0xe3, 0x1f, 0x77, 0xb7,
+ 0x37, 0xeb, 0xcd, 0x57, 0xdc, 0xe0, 0x2d, 0xcf,
+ 0x79, 0x85, 0x0e, 0xa4, 0x7a, 0x64, 0x65, 0x06,
+ 0x3b, 0x96, 0xed, 0xf6, 0x70, 0xa0, 0xdb, 0x77,
+ 0xa0, 0x81, 0x15, 0x3a, 0xa3, 0x79, 0x4d, 0x51,
+ 0x53, 0xb2, 0x94, 0x57, 0x85, 0x8b, 0xdb, 0x54,
+ 0x15, 0x51, 0x26, 0x2c, 0x45, 0x08, 0xf5, 0x0b,
+ 0x54, 0x24, 0x61, 0x4d, 0x7d, 0x52, 0x28, 0xa8,
+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,
+ 0x81, 0xe7, 0x81, 0x21, 0xe2, 0xf6, 0xb6, 0x8a,
+ 0xdd, 0xda, 0x6b, 0xfd, 0xf3, 0x7a, 0xf3, 0x79,
+ 0x73, 0xf9, 0x0b, 0xdf, 0xde, 0xdd, 0x7f, 0xbb,
+ 0xbe, 0xfa, 0xbe, 0xde, 0xf4, 0xe9, 0xaa, 0xe5,
+ 0x88, 0x4c, 0xef, 0xac, 0x81, 0xfe, 0xa1, 0xff,
+ 0xaa, 0xf7, 0x8d, 0xe5
+ };
+ static std::string decompressed = util::decompress(std::string(reinterpret_cast<const char*>(compressed), sizeof(compressed)));
+ return decompressed.c_str();
+}();
} // namespace shaders
} // namespace mbgl