summaryrefslogtreecommitdiff
path: root/shaders/default.v.glsl
blob: 197fdbe88c465b320d051586afe9506d408cb7a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#version 110

attribute vec2 pos;
varying vec2 texcoord;
uniform 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);
}