commit a5bbbdea8e9330a1a63a10816e400d0db54007a1
Author: Leszek Koltunski <leszek@distoretedandroid.org>
Date:   Mon Dec 12 13:23:48 2016 +0000

    Fix parallel projection.

diff --git a/src/main/java/org/distorted/library/DistortedFramebuffer.java b/src/main/java/org/distorted/library/DistortedFramebuffer.java
index 1962c06..b8b4735 100644
--- a/src/main/java/org/distorted/library/DistortedFramebuffer.java
+++ b/src/main/java/org/distorted/library/DistortedFramebuffer.java
@@ -85,10 +85,10 @@ public class DistortedFramebuffer
         float right  = -mX+mWidth /2.0f;
         float bottom = -mY-mHeight/2.0f;
         float top    = -mY+mHeight/2.0f;
-        float near   = (top-bottom) / (2.0f*(float)Math.tan(Math.PI/360));
-        mDistance    = mHeight*near/(top-bottom);
-        float far    = 2*mDistance-near;
-        mDepth       = (int)((far-near)/2);
+        float near   = (mWidth+mHeight)/2;
+        mDistance    = 2*near;
+        float far    = 3*near;
+        mDepth       = (int)near;
 
         Matrix.orthoM(mProjectionMatrix, 0, left, right, bottom, top, near, far);
         }
