MapGenerator -> TileGenerator
This commit is contained in:
parent
d3f8f7ceef
commit
e54e6e1c46
@ -580,12 +580,12 @@ public class GLRenderer implements GLSurfaceView.Renderer {
|
||||
int z = mapPosition.zoomLevel;
|
||||
float s = mapPosition.scale;
|
||||
|
||||
int zoomLevelDiff = Math.max(z - MapGenerator.STROKE_MAX_ZOOM_LEVEL, 0);
|
||||
int zoomLevelDiff = Math.max(z - TileGenerator.STROKE_MAX_ZOOM_LEVEL, 0);
|
||||
float scale = (float) Math.pow(1.4, zoomLevelDiff);
|
||||
if (scale < 1)
|
||||
scale = 1;
|
||||
|
||||
if (z >= MapGenerator.STROKE_MAX_ZOOM_LEVEL)
|
||||
if (z >= TileGenerator.STROKE_MAX_ZOOM_LEVEL)
|
||||
TextRenderer.beginDraw(FloatMath.sqrt(s) / scale, mRotTMatrix);
|
||||
else
|
||||
TextRenderer.beginDraw(s, mRotTMatrix);
|
||||
|
||||
@ -130,7 +130,7 @@ class LineRenderer {
|
||||
blur = true;
|
||||
}
|
||||
|
||||
if (zoom > MapGenerator.STROKE_MAX_ZOOM_LEVEL)
|
||||
if (zoom > TileGenerator.STROKE_MAX_ZOOM_LEVEL)
|
||||
GLES20.glUniform1f(hLineWidth,
|
||||
(l.width + o.width) / (scale * z));
|
||||
else
|
||||
@ -146,7 +146,7 @@ class LineRenderer {
|
||||
blur = true;
|
||||
}
|
||||
|
||||
if (line.fixed || zoom > MapGenerator.STROKE_MAX_ZOOM_LEVEL) {
|
||||
if (line.fixed || zoom > TileGenerator.STROKE_MAX_ZOOM_LEVEL) {
|
||||
// invert scaling of extrusion vectors so that line width stays the same
|
||||
GLES20.glUniform1f(hLineWidth, (l.width / (scale * z)));
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user