Revision 96e3b88a
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/library/effect/MatrixEffectScale.java | ||
---|---|---|
57 | 57 |
*/ |
58 | 58 |
public void apply(float[] matrixP, float[] matrixV, float[] uniforms, int index) |
59 | 59 |
{ |
60 |
float sx = uniforms[NUM_UNIFORMS*index ]; |
|
61 |
float sy = uniforms[NUM_UNIFORMS*index+1]; |
|
62 |
float sz = uniforms[NUM_UNIFORMS*index+2]; |
|
60 |
float sx = uniforms[NUM_FLOAT_UNIFORMS*index ];
|
|
61 |
float sy = uniforms[NUM_FLOAT_UNIFORMS*index+1];
|
|
62 |
float sz = uniforms[NUM_FLOAT_UNIFORMS*index+2];
|
|
63 | 63 |
|
64 | 64 |
Matrix.scaleM(matrixP, 0, sx, sy, sz); |
65 | 65 |
Matrix.scaleM(matrixV, 0, sy*sz, sx*sz, sx*sy); |
Also available in: Unified diff
Introducing UBO to Effect Queues: step 1.