]> git.sesse.net Git - nageru/blob - nageru/cbcr_subsample.vert
Fix a comment typo.
[nageru] / nageru / cbcr_subsample.vert
1 #version 130
2
3 in vec2 position;
4 in vec2 texcoord;
5 out vec2 tc0, tc1;
6 uniform vec2 foo_chroma_offset_0;
7 uniform vec2 foo_chroma_offset_1;
8
9 void main()
10 {
11         // The result of glOrtho(0.0, 1.0, 0.0, 1.0, 0.0, 1.0) is:
12         //
13         //   2.000  0.000  0.000 -1.000
14         //   0.000  2.000  0.000 -1.000
15         //   0.000  0.000 -2.000 -1.000
16         //   0.000  0.000  0.000  1.000
17         gl_Position = vec4(2.0 * position.x - 1.0, 2.0 * position.y - 1.0, -1.0, 1.0);
18         vec2 flipped_tc = texcoord;
19         tc0 = flipped_tc + foo_chroma_offset_0;
20         tc1 = flipped_tc + foo_chroma_offset_1;
21 };