Files
MapLibreParticleLab/shaders/drawable.heatmap_texture.vertex.glsl
Alex Cristici cca3adb375 Layer group uniforms (#2247)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-18 14:22:11 +03:00

17 lines
337 B
GLSL

layout (location = 0) in vec2 a_pos;
out vec2 v_pos;
layout (std140) uniform HeatmapTexturePropsUBO {
highp mat4 u_matrix;
highp vec2 u_world;
highp float u_opacity;
lowp float props_pad1;
};
void main() {
gl_Position = u_matrix * vec4(a_pos * u_world, 0, 1);
v_pos.x = a_pos.x;
v_pos.y = 1.0 - a_pos.y;
}