reprap: c3 update etc
[simavr] / examples / board_reprap / gfx / postproc.vs
1 #version 120
2 //uniform mat4 g_WorldViewProjectionMatrix;
3 uniform vec2 g_Resolution = vec2(800,600);
4 uniform float m_SubPixelShift = 1.0 / 4.0;
5
6 varying vec2 texCoord;
7 varying vec4 posPos;
8
9 void main() {
10         gl_Position = ftransform();
11         gl_TexCoord[0] = gl_MultiTexCoord0;
12         texCoord = gl_MultiTexCoord0.xy;
13     vec2 rcpFrame = vec2(1.0) / g_Resolution;
14     posPos.xy = texCoord;
15     posPos.zw = texCoord - (rcpFrame * vec2(0.5 + m_SubPixelShift));
16 }