Project

General

Profile

« Previous | Next » 

Revision 96e3b88a

Added by Leszek Koltunski over 3 years ago

Introducing UBO to Effect Queues: step 1.

View differences:

src/main/java/org/distorted/library/effect/MatrixEffectMove.java
50 50
 */
51 51
  public void apply(float[] matrixP, float[] matrixV, float[] uniforms, int index)
52 52
    {
53
    float sx = uniforms[NUM_UNIFORMS*index  ];
54
    float sy = uniforms[NUM_UNIFORMS*index+1];
55
    float sz = uniforms[NUM_UNIFORMS*index+2];
53
    float sx = uniforms[NUM_FLOAT_UNIFORMS*index  ];
54
    float sy = uniforms[NUM_FLOAT_UNIFORMS*index+1];
55
    float sz = uniforms[NUM_FLOAT_UNIFORMS*index+2];
56 56

  
57 57
    Matrix.translateM(matrixP, 0, sx, sy, sz);
58 58
    Matrix.translateM(matrixV, 0, sx, sy, sz);

Also available in: Unified diff