A simple map viewer

map.frag 233B

12345678910
  1. #version 100
  2. precision highp float;
  3. varying vec2 v_tex;
  4. varying vec4 v_tex_minmax;
  5. uniform sampler2D tex_map;
  6. void main() {
  7. gl_FragColor = vec4(texture2D(tex_map, clamp(v_tex.xy, v_tex_minmax.xy, v_tex_minmax.zw)).rgb, 1.0);
  8. }