commit 2fef9669e11819dad2b8d86df2ece44007c160c4
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Thu Jan 3 21:09:51 2019 +0000

    Correct the z-axis of the center of fragment effects (it was inverted)

diff --git a/src/main/java/org/distorted/library/effect/MatrixEffectShear.java b/src/main/java/org/distorted/library/effect/MatrixEffectShear.java
index a666e1e..bbfae3b 100644
--- a/src/main/java/org/distorted/library/effect/MatrixEffectShear.java
+++ b/src/main/java/org/distorted/library/effect/MatrixEffectShear.java
@@ -87,7 +87,7 @@ public class MatrixEffectShear extends MatrixEffect
  *
  * @param shear   The 3-tuple of shear factors. The first controls level
  *                of shearing in the X-axis, second - Y-axis and the third -
- *                Z-axis. Each is the tangens of the shear angle, i.e 0 -
+ *                Z-axis. Each is the tangent of the shear angle, i.e 0 -
  *                no shear, 1 - shear by 45 degrees (tan(45deg)=1) etc.
  * @param center  Center of shearing, i.e. the point which stays unmoved.
  */
diff --git a/src/main/java/org/distorted/library/main/EffectQueueFragment.java b/src/main/java/org/distorted/library/main/EffectQueueFragment.java
index 96bc0e6..27f1370 100644
--- a/src/main/java/org/distorted/library/main/EffectQueueFragment.java
+++ b/src/main/java/org/distorted/library/main/EffectQueueFragment.java
@@ -80,7 +80,7 @@ class EffectQueueFragment extends EffectQueue
 
       mUniforms[NUM_UNIFORMS*i+5] = mUniforms[NUM_UNIFORMS*i+5]-halfX;
       mUniforms[NUM_UNIFORMS*i+6] =-mUniforms[NUM_UNIFORMS*i+6]+halfY;
-      mUniforms[NUM_UNIFORMS*i+7] =-mUniforms[NUM_UNIFORMS*i+7]+halfZ;
+      mUniforms[NUM_UNIFORMS*i+7] = mUniforms[NUM_UNIFORMS*i+7]-halfZ;
       }
 
     mTime = currTime;  
