Revision 2fef9669
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/library/effect/MatrixEffectShear.java | ||
---|---|---|
87 | 87 |
* |
88 | 88 |
* @param shear The 3-tuple of shear factors. The first controls level |
89 | 89 |
* of shearing in the X-axis, second - Y-axis and the third - |
90 |
* Z-axis. Each is the tangens of the shear angle, i.e 0 -
|
|
90 |
* Z-axis. Each is the tangent of the shear angle, i.e 0 -
|
|
91 | 91 |
* no shear, 1 - shear by 45 degrees (tan(45deg)=1) etc. |
92 | 92 |
* @param center Center of shearing, i.e. the point which stays unmoved. |
93 | 93 |
*/ |
src/main/java/org/distorted/library/main/EffectQueueFragment.java | ||
---|---|---|
80 | 80 |
|
81 | 81 |
mUniforms[NUM_UNIFORMS*i+5] = mUniforms[NUM_UNIFORMS*i+5]-halfX; |
82 | 82 |
mUniforms[NUM_UNIFORMS*i+6] =-mUniforms[NUM_UNIFORMS*i+6]+halfY; |
83 |
mUniforms[NUM_UNIFORMS*i+7] =-mUniforms[NUM_UNIFORMS*i+7]+halfZ;
|
|
83 |
mUniforms[NUM_UNIFORMS*i+7] = mUniforms[NUM_UNIFORMS*i+7]-halfZ;
|
|
84 | 84 |
} |
85 | 85 |
|
86 | 86 |
mTime = currTime; |
Also available in: Unified diff
Correct the z-axis of the center of fragment effects (it was inverted)