commit eb80a7e82810cf450dcacada3480d4b146be826b
Author: Leszek Koltunski <leszek@distoretedandroid.org>
Date:   Wed Apr 26 16:21:57 2017 +0100

    Make a MeshCubes object rendered with no effects have its front wall at the screen's surface (so that when we just replace MeshFlat with MeshCubes, it looks more similar)

diff --git a/src/main/java/org/distorted/library/EffectQueueMatrix.java b/src/main/java/org/distorted/library/EffectQueueMatrix.java
index 5723de9..05e4a88 100644
--- a/src/main/java/org/distorted/library/EffectQueueMatrix.java
+++ b/src/main/java/org/distorted/library/EffectQueueMatrix.java
@@ -106,7 +106,7 @@ class EffectQueueMatrix extends EffectQueue
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 // here construct the ModelView and the ModelViewProjection Matrices
 
-  private void constructMatrices(DistortedOutputSurface projection, float halfX, float halfY)
+  private void constructMatrices(DistortedOutputSurface projection, float halfX, float halfY, float halfZ)
     {
     Matrix.setIdentityM(mViewMatrix, 0);
     Matrix.translateM(mViewMatrix, 0, -projection.mWidth/2, projection.mHeight/2, -projection.mDistance);
@@ -182,7 +182,7 @@ class EffectQueueMatrix extends EffectQueue
         }
       }
 
-    Matrix.translateM(mViewMatrix, 0, halfX,-halfY, 0);
+    Matrix.translateM(mViewMatrix, 0, halfX,-halfY,-halfZ);
     Matrix.multiplyMM(mMVPMatrix, 0, projection.mProjectionMatrix, 0, mViewMatrix, 0);
     }
 
@@ -251,7 +251,7 @@ class EffectQueueMatrix extends EffectQueue
 
   synchronized void send(DistortedOutputSurface projection, float halfX, float halfY, float halfZ)
     {
-    constructMatrices(projection,halfX,halfY);
+    constructMatrices(projection,halfX,halfY,halfZ);
 
     GLES30.glUniform3f( mObjDH , halfX, halfY, halfZ);
     GLES30.glUniformMatrix4fv(mMVMatrixH , 1, false, mViewMatrix, 0);
