simple_vertex.glsl 221 B

12345678910
  1. #version 130
  2. in ivec4 position;
  3. out vec2 Texcoord;
  4. uniform vec2 screen;
  5. void main()
  6. {
  7. Texcoord = vec2(position.z, position.w);
  8. gl_Position = vec4(position.x / screen.x - 1, 1 - position.y / screen.y, 0.0, 1.0);
  9. }