Clean legacy code (#3469)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Alex Cristici
2025-05-15 22:53:09 +03:00
committed by GitHub
parent a810c4de0a
commit a650df219d
267 changed files with 3053 additions and 10896 deletions

View File

@@ -1,7 +1,34 @@
layout (location = 0) in vec2 a_pos;
layout (std140) uniform GlobalPaintParamsUBO {
highp vec2 u_pattern_atlas_texsize;
highp vec2 u_units_to_pixels;
highp vec2 u_world_size;
highp float u_camera_to_center_distance;
highp float u_symbol_fade_change;
highp float u_aspect_ratio;
highp float u_pixel_ratio;
highp float u_map_zoom;
lowp float global_pad1;
};
uniform mat4 u_matrix;
uniform vec2 u_world;
layout (std140) uniform FillOutlineDrawableUBO {
highp mat4 u_matrix;
// Interpolations
highp float u_outline_color_t;
highp float u_opacity_t;
lowp float drawable_pad1;
lowp float drawable_pad2;
};
layout (std140) uniform FillEvaluatedPropsUBO {
highp vec4 u_color;
highp vec4 u_outline_color;
highp float u_opacity;
highp float u_fade;
highp float u_from_scale;
highp float u_to_scale;
};
layout (location = 0) in vec2 a_pos;
out vec2 v_pos;
@@ -13,5 +40,5 @@ void main() {
#pragma mapbox: initialize lowp float opacity
gl_Position = u_matrix * vec4(a_pos, 0, 1);
v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;
v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world_size;
}