commit 355c0a07e42b9e9256a2751ed2987a266a82c7c3
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Wed May 6 22:43:20 2020 +0100

    Convert Earth to stretchless API.

diff --git a/src/main/java/org/distorted/examples/earth/EarthRenderer.java b/src/main/java/org/distorted/examples/earth/EarthRenderer.java
index 49b31d5..169702f 100644
--- a/src/main/java/org/distorted/examples/earth/EarthRenderer.java
+++ b/src/main/java/org/distorted/examples/earth/EarthRenderer.java
@@ -64,9 +64,8 @@ import javax.microedition.khronos.opengles.GL10;
 
 class EarthRenderer implements GLSurfaceView.Renderer
 {
-    private static final int   SIZE    =     500;
-    private static final int   RADIUS_V= SIZE/ 8;
-    private static final int   RADIUS_F= SIZE/15;
+    private static final float RADIUS_V= 1.0f/ 8;
+    private static final float RADIUS_F= 1.0f/15;
     private static final int   LEVEL   =      40;
     private static final float FOV     =   30.0f;
     private static final float NEAR    =    0.1f;
@@ -78,7 +77,7 @@ class EarthRenderer implements GLSurfaceView.Renderer
     private DistortedEffects mEffects;
     private MeshBase mMesh;
     private DistortedScreen mScreen;
-    private int mObjWidth, mObjHeight, mObjDepth;
+    private float mObjWidth, mObjHeight, mObjDepth;
     private Static3D mMove, mScaleFactor;
 
     private int mScrWidth, mScrHeight;
@@ -117,10 +116,9 @@ class EarthRenderer implements GLSurfaceView.Renderer
       scale.add(mScaleFactor);
 
       mMesh     = new MeshSphere(LEVEL);
-      mMesh.setStretch(SIZE,SIZE,SIZE);
       mTexture  = new DistortedTexture();
 
-      mObjWidth = mObjHeight = mObjDepth = SIZE;
+      mObjWidth = mObjHeight = mObjDepth = 1.0f;
 
       mQuat1 = new Static4D(0,0,0,1);  // unity
       mQuat2 = new Static4D(0,0,0,1);  // quaternions
@@ -154,7 +152,7 @@ class EarthRenderer implements GLSurfaceView.Renderer
       {
       mScrWidth = width;
       mScrHeight= height;
-      mScreenMin= width<height ? width:height;
+      mScreenMin= Math.min(width, height);
 
       adjustFactor();
 
