A simple map viewer

ortho_tile.vert 283B

123456789101112131415
  1. #version 100
  2. precision mediump float;
  3. attribute vec3 position;
  4. attribute vec2 tex_coord;
  5. attribute vec4 tex_minmax;
  6. varying vec2 v_tex;
  7. varying vec4 v_tex_minmax;
  8. void main() {
  9. gl_Position = vec4(position.xy, 0.0, 1.0);
  10. v_tex = tex_coord;
  11. v_tex_minmax = tex_minmax;
  12. }