Open glyh opened 3 months ago
The matrixes should work out of the box as-is with OpenGL. Did you encounter any problems?
We're using row major matrices AFAIK, so computation does not work seemlessly with openGL.
For example, there's an old demo of someone using zlm to replcate learnopengl tutorial's lesson on transformation.
Here's the code.
Pay attention to this line:
You see the order of multiplication is incorrect. But exchanging the order yields the wrong result.
OpenGL uses column major matrics so in order to combo well with OpenGL I suppose it would be nice to have a column major version of matrices?