summaryrefslogtreecommitdiff
path: root/shaders/crt.v.glsl
blob: 162d0291129579b272265874e27ecb2257dbfc8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#version 110

attribute vec2 pos;
varying vec2 texcoord;
varying vec2 screencoord;
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);
	screencoord = sign(pos);
}