blit.vert 236 B

123456789101112131415161718
  1. #ifdef GL_ES
  2. precision mediump float;
  3. #endif
  4. attribute vec2 vert;
  5. attribute vec2 tex_coord;
  6. uniform mat3 transform;
  7. varying vec2 uv;
  8. void
  9. main()
  10. {
  11. uv = tex_coord;
  12. gl_Position = vec4(transform * vec3(vert, 1), 1);
  13. }