commit cbca11a37860b45c0d5fc8d7b6c2c050615f7d5a
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Thu Jan 3 01:32:45 2019 +0000

    Progress with the Earth app.

diff --git a/src/main/java/org/distorted/library/mesh/MeshSphere.java b/src/main/java/org/distorted/library/mesh/MeshSphere.java
index 5a4ac8c..096be48 100644
--- a/src/main/java/org/distorted/library/mesh/MeshSphere.java
+++ b/src/main/java/org/distorted/library/mesh/MeshSphere.java
@@ -31,7 +31,6 @@ package org.distorted.library.mesh;
 public class MeshSphere extends MeshBase
   {
   private static final int NUMFACES = 16;
-  private static final double sqrt2 = Math.sqrt(2.0);
   private static final double P = Math.PI;
 
   // An array of 16 entries, each describing a single face of the solid in an (admittedly) weird
@@ -180,9 +179,9 @@ public class MeshSphere extends MeshBase
     double sinLAT = Math.sin(latitude);
     double cosLAT = Math.cos(latitude);
 
-    float x = (float)(cosLAT*sinLON / sqrt2);
-    float y = (float)(sinLAT        / sqrt2);
-    float z = (float)(cosLAT*cosLON / sqrt2);
+    float x = (float)(cosLAT*sinLON / 2.0f);
+    float y = (float)(sinLAT        / 2.0f);
+    float z = (float)(cosLAT*cosLON / 2.0f);
 
     double texX = 0.5 + longitude/(2*P);
     if( texX>=1.0 ) texX-=1.0;
