testing tile overlay
This commit is contained in:
@@ -294,7 +294,7 @@ public final class PolygonRenderer {
|
||||
}
|
||||
}
|
||||
|
||||
static void drawOver(Matrices m) {
|
||||
public static void drawOver(Matrices m) {
|
||||
if (GLState.useProgram(polygonProgram)) {
|
||||
|
||||
GLState.enableVertexArrays(hPolygonVertexPosition, -1);
|
||||
|
||||
@@ -106,7 +106,14 @@ public class CustomOverlay extends RenderOverlay {
|
||||
/* apply view and projection matrices */
|
||||
// set mvp (tmp) matrix relative to mMapPosition
|
||||
// i.e. fixed on the map
|
||||
setMatrix(pos, m);
|
||||
|
||||
float ratio = 1f / mMapView.getWidth();
|
||||
|
||||
m.mvp.setScale(ratio, ratio, 1);
|
||||
m.mvp.multiplyMM(m.proj, m.mvp);
|
||||
|
||||
|
||||
// setMatrix(pos, m);
|
||||
m.mvp.setAsUniform(hMatrixPosition);
|
||||
|
||||
// Draw the triangle
|
||||
|
||||
Reference in New Issue
Block a user