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/MatrixEffectQuaternion.java
65 65
    float y = uniforms[NUM_UNIFORMS*index+5];
66 66
    float z = uniforms[NUM_UNIFORMS*index+6];
67 67

  
68
    Matrix.translateM(matrix, 0, x,-y,-z);
68
    Matrix.translateM(matrix, 0, x, y, z);
69 69
    multiplyByQuat( matrix, qX, qY, qZ, qW);
70
    Matrix.translateM(matrix, 0,-x, y, z);
70
    Matrix.translateM(matrix, 0,-x,-y,-z);
71 71
    }
72 72

  
73 73
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff