use new Martix4 function which use temporary array
- avoid 'undefined behaviour' which did work for most cases...
This commit is contained in:
@@ -100,7 +100,7 @@ public abstract class RenderLayer {
|
||||
matrices.mvp.setTransScale((float) (x * tileScale), (float) (y * tileScale),
|
||||
(float) ((position.scale / oPos.scale) / GLRenderer.COORD_SCALE));
|
||||
|
||||
matrices.mvp.multiplyMM(project ? matrices.viewproj : matrices.view, matrices.mvp);
|
||||
matrices.mvp.multiplyLhs(project ? matrices.viewproj : matrices.view);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -111,10 +111,7 @@ public class CustomRenderLayer extends RenderLayer {
|
||||
float ratio = 1f / mMapView.getWidth();
|
||||
|
||||
m.mvp.setScale(ratio, ratio, 1);
|
||||
m.mvp.multiplyMM(m.proj, m.mvp);
|
||||
|
||||
|
||||
// setMatrix(pos, m);
|
||||
m.mvp.multiplyLhs(m.proj);
|
||||
m.mvp.setAsUniform(hMatrixPosition);
|
||||
|
||||
// Draw the triangle
|
||||
|
||||
@@ -333,7 +333,7 @@ public class ExtrusionRenderLayer extends RenderLayer {
|
||||
// scale height
|
||||
m.mvp.setValue(10, scale / 10);
|
||||
|
||||
m.mvp.multiplyMM(m.viewproj, m.mvp);
|
||||
m.mvp.multiplyLhs(m.viewproj);
|
||||
|
||||
m.mvp.addDepthOffset(delta);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user