Drawable Renderer (#1570), Update shader sources

This commit is contained in:
Tim Sylvester
2023-05-22 17:46:23 -07:00
committed by Bart Louwers
parent c873570987
commit ec45ef654e
6 changed files with 12 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
layout (location = 0) in vec2 a_pos;
layout (std140) uniform DrawableUBO {
mat4 u_matrix;
vec2 u_world;
vec2 pad;
};
void main() {

View File

@@ -2,6 +2,8 @@ layout (location = 0) in vec2 a_pos;
layout (std140) uniform DrawableUBO {
mat4 u_matrix;
vec2 u_world;
vec2 pad;
};
#pragma mapbox: define highp vec4 color

View File

@@ -1,7 +1,10 @@
layout (location = 0) in vec2 a_pos;
uniform mat4 u_matrix;
uniform vec2 u_world;
layout (std140) uniform DrawableUBO {
mat4 u_matrix;
vec2 u_world;
vec2 pad;
};
out vec2 v_pos;