Revision 1dec66e0
Added by Leszek Koltunski 12 months ago
src/main/java/org/distorted/library/effect/MatrixEffectScale.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 |
import org.distorted.library.type.Static3D; |
27 | 26 |
|
... | ... | |
62 | 61 |
float sy = uniforms[NUM_FLOAT_UNIFORMS*index+1]; |
63 | 62 |
float sz = uniforms[NUM_FLOAT_UNIFORMS*index+2]; |
64 | 63 |
|
65 |
Matrix.scaleM(matrixP, 0, sx, sy, sz);
|
|
66 |
Matrix.scaleM(matrixV, 0, sy*sz, sx*sz, sx*sy);
|
|
64 |
MatrixHelper.scale(matrixP, sx, sy, sz);
|
|
65 |
MatrixHelper.scale(matrixV, sy*sz, sx*sz, sx*sy);
|
|
67 | 66 |
} |
68 | 67 |
|
69 | 68 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Implement the android.opengl.Matrix functions ourselves.