X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=vs.130.vert;fp=vs.130.vert;h=7b4ebab577156caa0819e929d06d67bede8d0e1b;hp=0000000000000000000000000000000000000000;hb=28bc5f37437fa8eaca523a209c558b807ced2db3;hpb=70f86335e039280a182119c3055aabeae01713bc diff --git a/vs.130.vert b/vs.130.vert new file mode 100644 index 0000000..7b4ebab --- /dev/null +++ b/vs.130.vert @@ -0,0 +1,17 @@ +#version 130 + +in vec2 position; +in vec2 texcoord; +out vec2 tc; + +void main() +{ + // The result of glOrtho(0.0, 1.0, 0.0, 1.0, 0.0, 1.0) is: + // + // 2.000 0.000 0.000 -1.000 + // 0.000 2.000 0.000 -1.000 + // 0.000 0.000 -2.000 -1.000 + // 0.000 0.000 0.000 1.000 + gl_Position = vec4(2.0 * position.x - 1.0, 2.0 * position.y - 1.0, -1.0, 1.0); + tc = texcoord; +}