summaryrefslogtreecommitdiff
path: root/shaders/default.v.glsl
blob: 82a24398d9d61599ac40ba9f96135e82b01427b1 (plain)
1
2
3
4
5
6
7
8
9
10

attribute vec2 pos;
varying mediump vec2 texcoord;
uniform mediump float width, height;

void main()
{
	gl_Position = vec4(pos, 0.0, 1.0);
	texcoord = sign(pos) * vec2(width / 1024.0, height / -1024.0) + vec2(width / 1024.0, height / 1024.0);
}