We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
The matrixes should work out of the box as-is with OpenGL. Did you encounter any problems?
Sorry, something went wrong.
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:
https://github.com/Flecart/zig-learnopengl/blob/2bd30f3286a99c825023bcec2199dba770b8315a/src/chapter-5/5.1.zig#L195
You see the order of multiplication is incorrect. But exchanging the order yields the wrong result.
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: