diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2018-07-24 15:40:33 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2018-07-25 11:39:05 -0700 |
commit | 888a516f1fec172081c06f4d2a98c08ae13a4d93 (patch) | |
tree | 9b25c54d9aa8866f500e8393a1a238f901a5835e /src/mbgl/shaders/line.cpp | |
parent | 524a645f0b3b2c6e2891f3e07eff7305b575b2f9 (diff) | |
download | qtlocation-mapboxgl-888a516f1fec172081c06f4d2a98c08ae13a4d93.tar.gz |
[core] Compress shader source code
Diffstat (limited to 'src/mbgl/shaders/line.cpp')
-rw-r--r-- | src/mbgl/shaders/line.cpp | 494 |
1 files changed, 265 insertions, 229 deletions
diff --git a/src/mbgl/shaders/line.cpp b/src/mbgl/shaders/line.cpp index a4df33d9b6..5dfce93da4 100644 --- a/src/mbgl/shaders/line.cpp +++ b/src/mbgl/shaders/line.cpp @@ -1,240 +1,276 @@ // NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. #include <mbgl/shaders/line.hpp> +#include <mbgl/util/compression.hpp> + +#include <cstdint> namespace mbgl { namespace shaders { const char* line::name = "line"; -const char* line::vertexSource = R"MBGL_SHADER( - - -// the distance over which the line edge fades out. -// Retina devices need a smaller distance to avoid aliasing. -#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0 - -// floor(127 / 2) == 63.0 -// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is -// stored in a byte (-128..127). we scale regular normals up to length 63, but -// there are also "special" normals that have a bigger length (of up to 126 in -// this case). -// #define scale 63.0 -#define scale 0.015873016 - -attribute vec4 a_pos_normal; -attribute vec4 a_data; - -uniform mat4 u_matrix; -uniform mediump float u_ratio; -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 -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_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_gapwidth -uniform lowp float a_gapwidth_t; -attribute mediump vec2 a_gapwidth; -#else -uniform mediump float u_gapwidth; -#endif - - -#ifndef HAS_UNIFORM_u_offset -uniform lowp float a_offset_t; -attribute lowp vec2 a_offset; -#else -uniform lowp float u_offset; -#endif - - -#ifndef HAS_UNIFORM_u_width -uniform lowp float a_width_t; -attribute mediump vec2 a_width; -#else -uniform mediump float u_width; -#endif - - -void main() { - -#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_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_gapwidth - mediump float gapwidth = unpack_mix_vec2(a_gapwidth, a_gapwidth_t); -#else - mediump float gapwidth = u_gapwidth; -#endif - - -#ifndef HAS_UNIFORM_u_offset - lowp float offset = unpack_mix_vec2(a_offset, a_offset_t); -#else - lowp float offset = u_offset; -#endif - - -#ifndef HAS_UNIFORM_u_width - mediump float width = unpack_mix_vec2(a_width, a_width_t); -#else - mediump float width = u_width; -#endif - - - 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 - // y is 1 if the normal points up, and -1 if it points down - mediump vec2 normal = a_pos_normal.zw; - v_normal = normal; - - // these transformations used to be applied in the JS and native code bases. - // moved them into the shader for clarity and simplicity. - gapwidth = gapwidth / 2.0; - float halfwidth = width / 2.0; - offset = -1.0 * offset; - - float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0); - float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + (halfwidth == 0.0 ? 0.0 : ANTIALIASING); - - // Scale the extrusion vector down to a normal and then up by the line width - // of this vertex. - mediump vec2 dist = outset * a_extrude * scale; - - // Calculate the offset when drawing a line that is to the side of the actual line. - // We do this by creating a vector that points towards the extrude, but rotate - // it when we're drawing round end points (a_direction = -1 or 1) since their - // extrude vector points in another direction. - mediump float u = 0.5 * a_direction; - mediump float t = 1.0 - abs(u); - mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t); - - vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0); - gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude; - - // calculate how much the perspective view squishes or stretches the extrude - float extrude_length_without_perspective = length(dist); - float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels); - v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective; - - v_width2 = vec2(outset, inset); -} - -)MBGL_SHADER"; -const char* line::fragmentSource = R"MBGL_SHADER( - -#ifndef HAS_UNIFORM_u_color -varying highp vec4 color; -#else -uniform highp vec4 u_color; -#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 - - -varying vec2 v_width2; -varying vec2 v_normal; -varying float v_gamma_scale; - -void main() { - -#ifdef HAS_UNIFORM_u_color - highp vec4 color = u_color; -#endif - - -#ifdef HAS_UNIFORM_u_blur - lowp float blur = u_blur; -#endif - - -#ifdef HAS_UNIFORM_u_opacity - lowp float opacity = u_opacity; -#endif - - - // Calculate the distance of the pixel from the line in pixels. - float dist = length(v_normal) * v_width2.s; - - // Calculate the antialiasing fade factor. This is either when fading in - // the line in case of an offset line (v_width2.t) or when fading out - // (v_width2.s) - float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale; - float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0); - - gl_FragColor = color * (alpha * opacity); - -#ifdef OVERDRAW_INSPECTOR - gl_FragColor = vec4(1.0); -#endif -} - -)MBGL_SHADER"; +const char* line::vertexSource = [] () { + static const uint8_t compressed[] = { + 0x78, 0xda, 0x8d, 0x57, 0x6d, 0x93, 0xd3, 0x36, + 0x10, 0xfe, 0x9e, 0x5f, 0xb1, 0xc3, 0x7d, 0x20, + 0x39, 0x72, 0xce, 0x0b, 0xc7, 0xc1, 0x90, 0xb9, + 0x76, 0x6e, 0x28, 0x6d, 0xd3, 0xa1, 0xc0, 0x70, + 0xf4, 0xe5, 0x9b, 0x47, 0xb1, 0x95, 0x58, 0xad, + 0x6d, 0xb9, 0x96, 0x1c, 0x27, 0x74, 0xfa, 0xdf, + 0xbb, 0xab, 0x17, 0xdb, 0x49, 0x9c, 0x00, 0x03, + 0x13, 0xa3, 0x7d, 0x7b, 0xb4, 0xda, 0x95, 0x9e, + 0x1d, 0x0c, 0x26, 0x13, 0xd0, 0x09, 0x87, 0x58, + 0x28, 0xcd, 0xf2, 0x88, 0x83, 0xdc, 0xf2, 0x12, + 0xea, 0x44, 0x44, 0x89, 0x59, 0x4f, 0x45, 0xce, + 0x81, 0xc7, 0x1b, 0x0e, 0x6b, 0x16, 0x73, 0x05, + 0xb2, 0xd2, 0x01, 0xd9, 0x7c, 0xe2, 0x5a, 0xe4, + 0x0c, 0x62, 0xbe, 0x15, 0x11, 0x2e, 0xe7, 0x9c, + 0xc7, 0xc0, 0x40, 0x65, 0x2c, 0x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 0x54, + 0x49, 0x78, 0xa2, 0x0a, 0x1e, 0x09, 0x96, 0x3e, + 0x69, 0x0c, 0x75, 0x82, 0xc8, 0x12, 0xb6, 0xe5, + 0x14, 0x4f, 0x6c, 0x36, 0x84, 0xdb, 0x7a, 0x19, + 0xca, 0xb5, 0x73, 0x3b, 0x9b, 0xdf, 0x21, 0x20, + 0xeb, 0x0e, 0xb7, 0x13, 0x31, 0xc5, 0x47, 0xe6, + 0x1c, 0x7c, 0x36, 0x2d, 0x26, 0x93, 0x91, 0xc3, + 0xa5, 0x69, 0x30, 0x9d, 0xbd, 0x78, 0xf5, 0xf2, + 0xf9, 0x74, 0x76, 0x37, 0x18, 0x30, 0xad, 0x4b, + 0x81, 0xb8, 0x38, 0x6c, 0x79, 0x74, 0x0b, 0x2c, + 0x2c, 0xa4, 0x0a, 0x2d, 0x8e, 0xc5, 0xa9, 0x30, + 0x66, 0x9a, 0x2d, 0x06, 0x83, 0x2a, 0x17, 0x6b, + 0x54, 0xc1, 0x14, 0xeb, 0x5b, 0xa8, 0x42, 0xfc, + 0x29, 0xc5, 0x6e, 0xd1, 0x2e, 0xf3, 0x58, 0x54, + 0x59, 0x41, 0xe7, 0x83, 0xfb, 0xa8, 0xc2, 0x92, + 0x69, 0x21, 0x5b, 0x31, 0xfa, 0x9a, 0xe3, 0xea, + 0x26, 0x0d, 0x71, 0x45, 0xab, 0x50, 0xcb, 0xb0, + 0x10, 0x3b, 0x9e, 0x2a, 0xf4, 0xbc, 0x65, 0xe5, + 0x1e, 0x6b, 0xc2, 0xea, 0x6c, 0x1b, 0x20, 0x47, + 0xcb, 0xb5, 0x88, 0x75, 0x32, 0x6f, 0x97, 0x6d, + 0xa0, 0x6d, 0xb8, 0x61, 0x59, 0xc6, 0x42, 0xb3, + 0xcb, 0x56, 0x98, 0x88, 0x4d, 0x52, 0x34, 0x2a, + 0x54, 0xbd, 0x4a, 0xae, 0x59, 0x89, 0xc1, 0x06, + 0x57, 0x62, 0x9d, 0x63, 0x6a, 0xe0, 0xe7, 0x87, + 0xc7, 0xf0, 0xb7, 0xf7, 0xcb, 0x1f, 0x3f, 0x7c, + 0xfa, 0x35, 0xac, 0xc2, 0x48, 0xa6, 0xb2, 0x6c, + 0xd0, 0x62, 0xf1, 0x78, 0x6b, 0x66, 0x45, 0xa1, + 0xee, 0x66, 0xc6, 0xba, 0x77, 0xf9, 0x31, 0xf2, + 0xe3, 0xd0, 0x46, 0xe6, 0x24, 0x57, 0xb8, 0x4d, + 0xde, 0xf8, 0xee, 0xc8, 0xab, 0xb0, 0xd1, 0xc8, + 0x63, 0xb1, 0x3e, 0x0b, 0x6e, 0x95, 0x56, 0x67, + 0xb0, 0x91, 0xe4, 0x10, 0x9a, 0x11, 0x9b, 0x94, + 0x59, 0x69, 0x0b, 0xac, 0x63, 0x68, 0x05, 0x87, + 0xb8, 0x3a, 0xe2, 0x2a, 0xf4, 0x0a, 0x17, 0x61, + 0xc9, 0x82, 0x45, 0x42, 0xef, 0xfb, 0x91, 0x39, + 0xe1, 0x79, 0x70, 0x4e, 0xa1, 0x17, 0x5f, 0x23, + 0xbb, 0x00, 0xb1, 0xa3, 0x73, 0x11, 0xe5, 0x86, + 0x15, 0xa6, 0x74, 0xfa, 0x61, 0x7a, 0xe9, 0x21, + 0x4e, 0x5f, 0xcc, 0x0e, 0xaa, 0x57, 0x3a, 0xc6, + 0x73, 0x5c, 0xf3, 0x5d, 0xbd, 0xcb, 0x99, 0x5b, + 0xaf, 0x15, 0xd7, 0x67, 0x12, 0x67, 0x64, 0x17, + 0xf2, 0x66, 0xe4, 0x97, 0x53, 0xd3, 0xa8, 0x5c, + 0x44, 0x71, 0x21, 0x2d, 0x5f, 0xcf, 0xc9, 0x37, + 0x25, 0xe4, 0x38, 0x1b, 0xe6, 0x0d, 0xc8, 0x98, + 0xc8, 0x87, 0x23, 0xf8, 0x77, 0x00, 0xf8, 0xe7, + 0x62, 0x3b, 0x92, 0x82, 0xf9, 0x82, 0x7b, 0xa8, + 0x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2, 0xb0, 0xae, 0xdb, 0x37, 0x14, + 0x95, 0x87, 0x96, 0x84, 0x79, 0x7d, 0x64, 0x62, + 0xc6, 0xe0, 0x99, 0x0f, 0x58, 0xc3, 0x35, 0xdc, + 0x99, 0xa5, 0x6b, 0xa2, 0x5c, 0x8b, 0x0e, 0x3c, + 0x64, 0x1a, 0x06, 0x58, 0xcb, 0x38, 0x10, 0x9e, + 0x53, 0x40, 0x1e, 0xb3, 0x23, 0x96, 0x36, 0x03, + 0xb1, 0x06, 0xa1, 0x9f, 0x2a, 0x64, 0x42, 0xa5, + 0xac, 0xf2, 0x18, 0x89, 0x4e, 0x31, 0x86, 0x29, + 0x48, 0x22, 0x51, 0xb5, 0x70, 0xa9, 0x41, 0xf5, + 0x7d, 0xa3, 0x4e, 0x34, 0xce, 0xd1, 0xb7, 0x42, + 0x8a, 0x5c, 0x13, 0x11, 0xc3, 0x9c, 0xa2, 0xed, + 0x8d, 0x73, 0xe7, 0xd7, 0x63, 0x59, 0xe7, 0x07, + 0xa9, 0x35, 0xb8, 0x9c, 0xed, 0x11, 0xb4, 0x2f, + 0xf5, 0xc2, 0x6d, 0xbf, 0x91, 0x7b, 0x76, 0xe2, + 0x21, 0x60, 0x60, 0x85, 0x04, 0xb7, 0x64, 0xb9, + 0xa2, 0x2b, 0x90, 0x58, 0x4f, 0x8e, 0xc1, 0x15, + 0x52, 0x47, 0x24, 0x6c, 0x2b, 0x64, 0x73, 0x45, + 0x91, 0x0a, 0x4b, 0x24, 0x09, 0xe4, 0x2f, 0x8f, + 0x06, 0x55, 0x8e, 0x8a, 0x48, 0xf5, 0x22, 0x89, + 0x07, 0xb5, 0x42, 0x1a, 0xa7, 0x02, 0xef, 0x30, + 0x43, 0xea, 0x1d, 0x93, 0x6a, 0x86, 0x26, 0xe8, + 0x82, 0x8c, 0x54, 0x82, 0xac, 0xbb, 0x04, 0x0c, + 0x00, 0x11, 0x92, 0x4d, 0xea, 0x65, 0x72, 0xa2, + 0x44, 0x86, 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 0x4c, 0x37, 0xe9, 0xb3, 0x06, 0xf5, 0xb1, + 0x17, 0xd7, 0x29, 0x27, 0x28, 0xda, 0xb2, 0x8b, + 0x9a, 0xb2, 0x4b, 0x64, 0x0d, 0x59, 0xe5, 0x26, + 0xfd, 0x82, 0x97, 0x34, 0x9a, 0x9a, 0xdb, 0x69, + 0x2b, 0x78, 0x0d, 0xea, 0x9f, 0x4a, 0xa8, 0x84, + 0x66, 0xfe, 0x12, 0x67, 0xe2, 0x92, 0xeb, 0x88, + 0xfe, 0xd3, 0x29, 0x94, 0x4e, 0x5f, 0xbb, 0x95, + 0xd0, 0x0e, 0xae, 0xf8, 0x48, 0xe9, 0x04, 0x3b, + 0x20, 0xec, 0xfa, 0xbc, 0x77, 0x53, 0xad, 0xd9, + 0xfc, 0xc1, 0xa5, 0xd0, 0x63, 0xdc, 0x6f, 0x79, + 0xb2, 0x29, 0x7a, 0xe1, 0x26, 0xdd, 0x74, 0x99, + 0x17, 0xa8, 0x6f, 0xda, 0x1c, 0xf9, 0xfb, 0xbc, + 0x33, 0x35, 0xa2, 0xe3, 0x6f, 0xc0, 0x3d, 0xf9, + 0x1a, 0xbe, 0xe6, 0xa5, 0xb4, 0x83, 0x2a, 0x7a, + 0x35, 0xef, 0xbb, 0xbd, 0x01, 0xc6, 0xf6, 0xda, + 0xc4, 0xf0, 0xff, 0x0d, 0xfe, 0x07, 0x19, 0xfc, + 0xc0, 0x02 + }; + static std::string decompressed = util::decompress(std::string(reinterpret_cast<const char*>(compressed), sizeof(compressed))); + return decompressed.c_str(); +}(); +const char* line::fragmentSource = [] () { + static const uint8_t compressed[] = { + 0x78, 0xda, 0x85, 0x92, 0x51, 0x6f, 0x9b, 0x30, + 0x10, 0xc7, 0xdf, 0xf9, 0x14, 0x27, 0xf5, 0x05, + 0xb2, 0x8c, 0x64, 0xd1, 0xde, 0xa2, 0x3d, 0x44, + 0x29, 0xd5, 0x90, 0xb6, 0xa6, 0xa2, 0x59, 0xb7, + 0x37, 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xb5, 0x4d, 0x4f, + 0x6c, 0x76, 0x94, 0x73, 0x3b, 0xaf, 0x43, 0x06, + 0x47, 0x27, 0x9c, 0x3e, 0xec, 0x50, 0xaf, 0x5d, + 0xb3, 0xc5, 0x8b, 0x05, 0x6c, 0x91, 0xa7, 0x2d, + 0x47, 0x4d, 0x41, 0x97, 0x14, 0x32, 0xa6, 0x34, + 0x8a, 0x94, 0x82, 0xcc, 0xdd, 0xb9, 0x66, 0x7f, + 0x28, 0x87, 0xbc, 0x91, 0x95, 0x3b, 0x72, 0x26, + 0x28, 0x30, 0xd1, 0x85, 0x55, 0xe8, 0x18, 0x9d, + 0x96, 0xbd, 0x68, 0x84, 0x38, 0x15, 0x85, 0x2e, + 0xfd, 0xc1, 0xed, 0x00, 0x66, 0x2f, 0x0f, 0x12, + 0xaa, 0xf5, 0x15, 0x51, 0x14, 0x9a, 0x21, 0x67, + 0xa8, 0xdc, 0xb3, 0x60, 0x46, 0xcd, 0x27, 0xd5, + 0xb2, 0x09, 0x61, 0x5f, 0x32, 0x05, 0xe6, 0x4f, + 0x99, 0xa9, 0x6b, 0xe0, 0x58, 0x52, 0x61, 0x0b, + 0x6c, 0x1d, 0x13, 0x03, 0x6c, 0xdc, 0x58, 0x8a, + 0xca, 0xf5, 0x8e, 0xc2, 0x7c, 0x73, 0x45, 0x75, + 0x97, 0xf1, 0x5f, 0x9a, 0xd0, 0x01, 0xc8, 0x73, + 0x90, 0x6c, 0xf5, 0x40, 0x3a, 0x95, 0xa9, 0x60, + 0x34, 0x9b, 0x7d, 0x86, 0x95, 0x19, 0xce, 0x77, + 0x0f, 0xf3, 0x01, 0x3e, 0x85, 0x4b, 0x58, 0xc0, + 0x6d, 0xf4, 0x14, 0x6f, 0x23, 0xf2, 0x10, 0xff, + 0x8a, 0xbe, 0x91, 0x64, 0xb3, 0x8f, 0x77, 0xdd, + 0xb4, 0x67, 0xfb, 0x74, 0x82, 0x20, 0xaf, 0x4b, + 0x34, 0x90, 0x94, 0x63, 0x55, 0xfb, 0x95, 0x59, + 0x30, 0x67, 0xd9, 0xc7, 0x71, 0x6f, 0xe6, 0xe4, + 0xb4, 0x82, 0xf9, 0xc8, 0x35, 0x13, 0xb4, 0x95, + 0x81, 0x91, 0x74, 0xc9, 0x39, 0x2c, 0xc3, 0xe5, + 0xdc, 0x36, 0x11, 0xf4, 0x86, 0x16, 0x9c, 0xdc, + 0x35, 0x58, 0x6c, 0xfb, 0xed, 0xeb, 0xb6, 0x70, + 0x06, 0x7e, 0x27, 0x39, 0x1b, 0xf6, 0xc0, 0x96, + 0xf7, 0xeb, 0xb3, 0x7b, 0x8a, 0x92, 0xdb, 0x64, + 0xf3, 0x93, 0xc4, 0xf7, 0x8f, 0x0f, 0xd1, 0x76, + 0xbf, 0x4b, 0x2e, 0x81, 0xec, 0x4e, 0xfb, 0x9d, + 0x4e, 0xbf, 0x35, 0xff, 0xbc, 0xff, 0x74, 0x55, + 0x77, 0xc9 + }; + static std::string decompressed = util::decompress(std::string(reinterpret_cast<const char*>(compressed), sizeof(compressed))); + return decompressed.c_str(); +}(); } // namespace shaders } // namespace mbgl |