summaryrefslogtreecommitdiff
path: root/render/fx_renderer/gles2/shaders/common.vert
blob: 9e7b073cd1892fa2e23fa7acc07842cc6ef2cb9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
uniform mat3 proj;
uniform vec4 color;
uniform mat3 tex_proj;
attribute vec2 pos;
varying vec4 v_color;
varying vec2 v_texcoord;

void main() {
	vec3 pos3 = vec3(pos, 1.0);
	gl_Position = vec4(pos3 * proj, 1.0);
	v_color = color;
	v_texcoord = (pos3 * tex_proj).xy;
}