Project

General

Profile

« Previous | Next » 

Revision 7bebb196

Added by Leszek Koltunski over 5 years ago

Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).

View differences:

src/main/java/org/distorted/library/effect/MatrixEffectRotate.java
63 63
    float y = uniforms[NUM_UNIFORMS*index+5];
64 64
    float z = uniforms[NUM_UNIFORMS*index+6];
65 65

  
66
    Matrix.translateM(matrix, 0, x,-y,-z);
66
    Matrix.translateM(matrix, 0, x, y, z);
67 67
    Matrix.rotateM( matrix, 0, alpha, axisX, axisY, axisZ);
68
    Matrix.translateM(matrix, 0,-x, y, z);
68
    Matrix.translateM(matrix, 0,-x,-y,-z);
69 69
    }
70 70

  
71 71
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff