opengles3-book icon indicating copy to clipboard operation
opengles3-book copied to clipboard

The rotation direction of the esRotate is inverted

Open cook opened this issue 8 years ago • 0 comments

For example, esRotate(45, 0.f, 0.f, 1.f) should rotate counter clockwised but clockwised actually.

From the other codes, such as the implementation of the function esTranslate and the transpose parameter of the glUniformMatrix4fv always being setted to GL_FALSE, the model matrix is seemed to be column majored, but the implementation of the esRotate and esMatrixMultiply are row majored.

How confusing the codes are!

cook avatar Aug 22 '17 07:08 cook