Files
MapLibreParticleLab/src/shader/pattern.vertex.glsl
2014-08-14 12:58:41 +02:00

12 lines
213 B
GLSL

uniform mat4 u_matrix;
uniform mat3 u_patternmatrix;
attribute vec2 a_pos;
varying vec2 v_pos;
void main() {
gl_Position = u_matrix * vec4(a_pos, 0, 1);
v_pos = (u_patternmatrix * vec3(a_pos, 1)).xy;
}