Circle map style: use GL quads or GL points #122

This commit is contained in:
Emux
2016-12-08 14:30:05 +02:00
parent 4cd11462da
commit b6dc72bbb6
5 changed files with 79 additions and 12 deletions

View File

@@ -0,0 +1,22 @@
#ifdef GLES
precision highp float;
#endif
uniform mat4 u_mvp;
attribute vec2 a_pos;
varying vec2 v_pos;
void main() {
gl_Position = u_mvp * vec4(a_pos, 0.0, 1.0);
v_pos = a_pos;
}
$$
#ifdef GLES
precision highp float;
#endif
uniform vec4 u_color;
uniform float u_scale;
varying vec2 v_pos;
void main() {
gl_FragColor = u_color;
}