Revision 62c869ad
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/library/effect/MatrixEffectMove.java | ||
---|---|---|
48 | 48 |
* |
49 | 49 |
* @y.exclude |
50 | 50 |
*/ |
51 |
public void apply(float[] matrix, float[] uniforms, int index) |
|
51 |
public void apply(float[] matrixP, float[] matrixV, float[] uniforms, int index)
|
|
52 | 52 |
{ |
53 | 53 |
float sx = uniforms[NUM_UNIFORMS*index ]; |
54 | 54 |
float sy = uniforms[NUM_UNIFORMS*index+1]; |
55 | 55 |
float sz = uniforms[NUM_UNIFORMS*index+2]; |
56 | 56 |
|
57 |
Matrix.translateM(matrix, 0, sx, sy, sz); |
|
57 |
Matrix.translateM(matrixP, 0, sx, sy, sz); |
|
58 |
Matrix.translateM(matrixV, 0, sx, sy, sz); |
|
58 | 59 |
} |
59 | 60 |
|
60 | 61 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Fix normals in case of MatrixEffectScale / Shear.
Fix displaying the normal vector.