pass non-inverted scale to TextureRenderer
This commit is contained in:
parent
c5de7d6051
commit
ce69dde08a
@ -81,7 +81,7 @@ class TextRenderer extends ElementRenderer {
|
||||
|
||||
layers.vbo.bind();
|
||||
|
||||
float scale = (float) (mMapPosition.scale / pos.scale);
|
||||
float scale = (float) (pos.scale / mMapPosition.scale);
|
||||
|
||||
setMatrix(pos, m, false);
|
||||
|
||||
|
||||
@ -122,7 +122,7 @@ public abstract class ElementRenderer extends LayerRenderer {
|
||||
continue;
|
||||
}
|
||||
if (l.type == SYMBOL) {
|
||||
l = TextureLayer.Renderer.draw(l, m, 1 / div);
|
||||
l = TextureLayer.Renderer.draw(l, m, div);
|
||||
continue;
|
||||
}
|
||||
log.debug("invalid layer {}", l.type);
|
||||
|
||||
@ -152,7 +152,7 @@ public abstract class TextureLayer extends RenderElement {
|
||||
TextureLayer tl = (TextureLayer) l;
|
||||
|
||||
if (tl.fixed)
|
||||
GL.glUniform1f(hTextureScale, scale);
|
||||
GL.glUniform1f(hTextureScale, 1 / scale);
|
||||
else
|
||||
GL.glUniform1f(hTextureScale, 1);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user