commit 0579fe3a23506ebb6523fcb7243d379c77af756c
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Mon Dec 17 19:57:06 2018 +0000

    Some fixes for Sphere; still not completely ok though.

diff --git a/src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java b/src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java
index e1c2741..2ca6903 100644
--- a/src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java
+++ b/src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java
@@ -165,7 +165,7 @@ public class Effects3DActivity extends Activity
         b.setOnClickListener(this);
         b.setId(rows*mNumCols+cols);
         b.setLayoutParams(p);
-        b.setBackgroundColor(mObjectType==1 ? COLOR_INAC : COLOR_ON);
+        b.setBackgroundColor(mObjectType==0 ? COLOR_ON:COLOR_INAC);
         tr.addView(b, p);
         mShape[rows*mNumCols+cols] = true;
         }
diff --git a/src/main/java/org/distorted/examples/inflate/InflateActivity.java b/src/main/java/org/distorted/examples/inflate/InflateActivity.java
index 069c2c7..ff23f67 100644
--- a/src/main/java/org/distorted/examples/inflate/InflateActivity.java
+++ b/src/main/java/org/distorted/examples/inflate/InflateActivity.java
@@ -165,7 +165,7 @@ public class InflateActivity extends Activity
         b.setOnClickListener(this);
         b.setId(rows*mNumCols+cols);
         b.setLayoutParams(p);
-        b.setBackgroundColor(mObjectType==1 ? COLOR_INAC : COLOR_ON);
+        b.setBackgroundColor(mObjectType==0 ? COLOR_ON:COLOR_INAC);
         tr.addView(b, p);
         mShape[rows*mNumCols+cols] = true;
         }
diff --git a/src/main/java/org/distorted/examples/inflate/InflateRenderer.java b/src/main/java/org/distorted/examples/inflate/InflateRenderer.java
index 74107de..93f7084 100644
--- a/src/main/java/org/distorted/examples/inflate/InflateRenderer.java
+++ b/src/main/java/org/distorted/examples/inflate/InflateRenderer.java
@@ -40,6 +40,9 @@ import javax.microedition.khronos.opengles.GL10;
 
 class InflateRenderer implements GLSurfaceView.Renderer
 {
+    private static final float FOV = 30.0f;
+    private static final float NEAR = 0.1f;
+
     private GLSurfaceView mView;
     private DistortedTexture mTexture;
     private DistortedEffects mEffects;
@@ -87,6 +90,7 @@ class InflateRenderer implements GLSurfaceView.Renderer
 
       mScreen = new DistortedScreen();
       mScreen.glClearColor(1.0f,1.0f,1.0f,0.0f);
+      mScreen.setProjection(FOV, NEAR);
       }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
