]> git.sesse.net Git - movit/blob - vs.vert
Remove GL_LUMINANCE in more places.
[movit] / vs.vert
1 attribute vec2 position;
2 attribute vec2 texcoord;
3 varying vec2 tc;
4
5 void main()
6 {
7         // The result of glOrtho(0.0, 1.0, 0.0, 1.0, 0.0, 1.0) is:
8         //
9         //   2.000  0.000  0.000 -1.000
10         //   0.000  2.000  0.000 -1.000
11         //   0.000  0.000 -2.000 -1.000
12         //   0.000  0.000  0.000  1.000
13         gl_Position = vec4(2.0 * position.x - 1.0, 2.0 * position.y - 1.0, -1.0, 1.0);
14         tc = texcoord;
15 }