summaryrefslogtreecommitdiff
path: root/src/render/shaders/glsl/tex.vert
blob: 6ede6a8e25d9c2af237a24161f92ed7f6ba55eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
uniform mat3 proj;
uniform vec4 color;
attribute vec2 pos;
attribute vec2 texcoord;
attribute vec2 texcoordMatte;
varying vec4 v_color;
varying vec2 v_texcoord;
varying vec2 v_texcoordMatte;

void main() {
    gl_Position = vec4(proj * vec3(pos, 1.0), 1.0);
    v_color = color;
    v_texcoord = texcoord;
    v_texcoordMatte = texcoordMatte;
}