Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
34 lines
909 B
GLSL
34 lines
909 B
GLSL
layout (std140) uniform FillOutlineDrawableUBO {
|
|
highp mat4 u_matrix;
|
|
highp vec2 u_world;
|
|
highp vec2 pad;
|
|
};
|
|
layout (std140) uniform FillOutlineEvaluatedPropsUBO {
|
|
highp vec4 u_outline_color;
|
|
highp float u_opacity;
|
|
highp float padding_props1;
|
|
highp float padding_props2;
|
|
highp float padding_props3;
|
|
};
|
|
layout (std140) uniform FillOutlineInterpolateUBO {
|
|
highp float u_outline_color_t;
|
|
highp float u_opacity_t;
|
|
highp float u_padding_interp1;
|
|
highp float u_padding_interp2;
|
|
};
|
|
|
|
layout (location = 0) in vec2 a_pos;
|
|
|
|
out vec2 v_pos;
|
|
|
|
#pragma mapbox: define highp vec4 outline_color
|
|
#pragma mapbox: define lowp float opacity
|
|
|
|
void main() {
|
|
#pragma mapbox: initialize highp vec4 outline_color
|
|
#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;
|
|
}
|