forked from opensciencemap/vtm
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Circle map style: use GL quads or GL points opensciencemap#122
- Loading branch information
Showing
5 changed files
with
79 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters