commit 815869cb3eb52da79013cf74d1161bb827712b52
Author: Leszek Koltunski <leszek@distorted.org>
Date:   Tue Aug 30 17:55:22 2016 +0100

    Vertex positions fully 3D now. Remaining: normals!

diff --git a/src/main/res/raw/main_vertex_shader.glsl b/src/main/res/raw/main_vertex_shader.glsl
index fd81c83..3c68636 100644
--- a/src/main/res/raw/main_vertex_shader.glsl
+++ b/src/main/res/raw/main_vertex_shader.glsl
@@ -363,7 +363,9 @@ void wave(in int effect, inout vec4 v)
   float d = -ps.x*cosB-ps.y*sinB;
   float num = length==0.0 ? 0.0 : d / length;
 
-  v.xy += (sin(1.578*num)*amplitude*deg*vec2(sinB,cosB));
+  vec3 dv = sin(1.578*num)*amplitude*deg*vec3(sinB*cosA,cosB*cosA,sinA);
+
+  v.xyz += dv;
   }
 
 #endif
