Map renderer COORD_SCALE configurable and global use (#344)
This commit is contained in:
@@ -6,13 +6,14 @@ attribute vec2 tex_coord;
|
||||
uniform mat4 u_mv;
|
||||
uniform mat4 u_proj;
|
||||
uniform float u_scale;
|
||||
uniform float u_coord_scale;
|
||||
uniform vec2 u_div;
|
||||
varying vec2 tex_c;
|
||||
const float coord_scale = 1.0/8.0;
|
||||
void
|
||||
main(){
|
||||
vec4 pos;
|
||||
vec2 dir = vertex.zw;
|
||||
float coord_scale = 1.0 / u_coord_scale;
|
||||
if (abs(mod(vertex.x, 2.0)) == 0.0) {
|
||||
pos = u_proj * (u_mv * vec4(vertex.xy + dir * u_scale, 0.0, 1.0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user