Revision 1dec66e0
Added by Leszek Koltunski 12 months ago
src/main/java/org/distorted/library/effect/MatrixEffectMove.java | ||
---|---|---|
20 | 20 |
|
21 | 21 |
package org.distorted.library.effect; |
22 | 22 |
|
23 |
import android.opengl.Matrix; |
|
24 |
|
|
23 |
import org.distorted.library.helpers.MatrixHelper; |
|
25 | 24 |
import org.distorted.library.type.Data3D; |
26 | 25 |
|
27 | 26 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
55 | 54 |
float sy = uniforms[NUM_FLOAT_UNIFORMS*index+1]; |
56 | 55 |
float sz = uniforms[NUM_FLOAT_UNIFORMS*index+2]; |
57 | 56 |
|
58 |
Matrix.translateM(matrixP, 0, sx, sy, sz);
|
|
59 |
Matrix.translateM(matrixV, 0, sx, sy, sz);
|
|
57 |
MatrixHelper.translate(matrixP, sx, sy, sz);
|
|
58 |
MatrixHelper.translate(matrixV, sx, sy, sz);
|
|
60 | 59 |
} |
61 | 60 |
|
62 | 61 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Implement the android.opengl.Matrix functions ourselves.