commit ea16dc893c99b64ddc9c6c2721fed9695315a05d
Author: Leszek Koltunski <leszek@distorted.org>
Date:   Fri Oct 21 14:44:08 2016 +0100

    minor stuff

diff --git a/src/main/java/org/distorted/library/DistortedObject.java b/src/main/java/org/distorted/library/DistortedObject.java
index e873647..6b7c475 100644
--- a/src/main/java/org/distorted/library/DistortedObject.java
+++ b/src/main/java/org/distorted/library/DistortedObject.java
@@ -818,7 +818,7 @@ public abstract class DistortedObject
  * Directional, sinusoidal wave effect.
  *
  * @param wave   A 5-dimensional data structure describing the wave: first member is the amplitude,
- *               second is the wave length, third is the offset (i.e. when offset = PI/2, the sine
+ *               second is the wave length, third is the phase (i.e. when phase = PI/2, the sine
  *               wave at the center does not start from sin(0), but from sin(PI/2) ) and the next two
  *               describe the 'direction' of the wave.
  *               <p>
diff --git a/src/main/java/org/distorted/library/type/Dynamic.java b/src/main/java/org/distorted/library/type/Dynamic.java
index 0134123..55eb87b 100644
--- a/src/main/java/org/distorted/library/type/Dynamic.java
+++ b/src/main/java/org/distorted/library/type/Dynamic.java
@@ -23,7 +23,7 @@ import java.util.Random;
 import java.util.Vector;
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
-/** A class to interpolate between a List of Static{1,2,3,4}Ds.
+/** A class to interpolate between a list of Statics.
 * <p><ul>
 * <li>if there is only one Point, just jump to it.
 * <li>if there are two Points, linearly bounce between them
@@ -524,9 +524,9 @@ public abstract class Dynamic
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 /**
- * Returns the number of Static{1,2,3,4}Ds this Dynamic has been fed with.
+ * Returns the number of Statics this Dynamic has been fed with.
  *   
- * @return the number of Static{1,2,3,4}Ds we are currently interpolating through.
+ * @return the number of Statics we are currently interpolating through.
  */
   public synchronized int getNumPoints()
     {
@@ -537,12 +537,12 @@ public abstract class Dynamic
 /**
  * Controls how many times we want to interpolate.
  * <p>
- * Count equal to 1 means 'go from the first Static{1,2,3,4}D to the last and back'. Does not have to be an
+ * Count equal to 1 means 'go from the first Static to the last and back'. Does not have to be an
  * integer - i.e. count=1.5 would mean 'start at the first Point, go to the last, come back to the first, 
  * go to the last again and stop'.
  * Count<=0 means 'go on interpolating indefinitely'.
  * 
- * @param count the number of times we want to interpolate between our collection of Static{1,2,3,4}Ds.
+ * @param count the number of times we want to interpolate between our collection of Statics.
  */
   public void setCount(float count)
     {
diff --git a/src/main/res/raw/main_vertex_shader.glsl b/src/main/res/raw/main_vertex_shader.glsl
index fe1d1b7..a614279 100644
--- a/src/main/res/raw/main_vertex_shader.glsl
+++ b/src/main/res/raw/main_vertex_shader.glsl
@@ -425,7 +425,7 @@ void wave(in int effect, inout vec4 v, inout vec4 n)
 
   if( deg != 0.0 && length != 0.0 )
     {
-    float offset= vUniforms[effect  ].z;
+    float phase = vUniforms[effect  ].z;
     float alpha = vUniforms[effect  ].w;
     float beta  = vUniforms[effect+1].x;
 
@@ -434,7 +434,7 @@ void wave(in int effect, inout vec4 v, inout vec4 n)
     float sinB = sin(beta);
     float cosB = cos(beta);
 
-    float angle= 1.578*(ps.x*cosB-ps.y*sinB) / length + offset;
+    float angle= 1.578*(ps.x*cosB-ps.y*sinB) / length + phase;
 
     vec3 dir= vec3(sinB*cosA,cosB*cosA,sinA);
 
