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

attribute vec2 pos;
varying vec2 texcoord;
uniform float width;

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