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:
@@ -1,14 +1,46 @@
|
||||
uniform mat4 u_matrix;
|
||||
uniform vec3 u_lightcolor;
|
||||
uniform lowp vec3 u_lightpos;
|
||||
uniform lowp float u_lightintensity;
|
||||
uniform float u_vertical_gradient;
|
||||
uniform lowp float u_opacity;
|
||||
|
||||
layout (location = 0) in vec2 a_pos;
|
||||
layout (location = 1) in vec4 a_normal_ed;
|
||||
out vec4 v_color;
|
||||
|
||||
layout (std140) uniform FillExtrusionDrawableUBO {
|
||||
highp mat4 u_matrix;
|
||||
highp vec2 u_pixel_coord_upper;
|
||||
highp vec2 u_pixel_coord_lower;
|
||||
highp float u_height_factor;
|
||||
highp float u_tile_ratio;
|
||||
// Interpolations
|
||||
highp float u_base_t;
|
||||
highp float u_height_t;
|
||||
highp float u_color_t;
|
||||
highp float u_pattern_from_t;
|
||||
highp float u_pattern_to_t;
|
||||
lowp float drawable_pad1;
|
||||
};
|
||||
|
||||
layout (std140) uniform FillExtrusionTilePropsUBO {
|
||||
highp vec4 u_pattern_from;
|
||||
highp vec4 u_pattern_to;
|
||||
highp vec2 u_texsize;
|
||||
lowp float tileprops_pad1;
|
||||
lowp float tileprops_pad2;
|
||||
};
|
||||
|
||||
layout (std140) uniform FillExtrusionPropsUBO {
|
||||
highp vec4 u_color;
|
||||
highp vec3 u_lightcolor;
|
||||
lowp float props_pad1;
|
||||
highp vec3 u_lightpos;
|
||||
highp float u_base;
|
||||
highp float u_height;
|
||||
highp float u_lightintensity;
|
||||
highp float u_vertical_gradient;
|
||||
highp float u_opacity;
|
||||
highp float u_fade;
|
||||
highp float u_from_scale;
|
||||
highp float u_to_scale;
|
||||
lowp float props_pad2;
|
||||
};
|
||||
|
||||
#pragma mapbox: define highp float base
|
||||
#pragma mapbox: define highp float height
|
||||
#pragma mapbox: define highp vec4 color
|
||||
|
||||
Reference in New Issue
Block a user