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
Component [2,2] in matrix for orthographic projection has wrong sign resulting some problems. Currently code of build function is:
template<typename T> GLM_FUNC_QUALIFIER mat<4, 4, T, defaultp> ortho(T left, T right, T bottom, T top) { mat<4, 4, T, defaultp> Result(static_cast<T>(1)); Result[0][0] = static_cast<T>(2) / (right - left); Result[1][1] = static_cast<T>(2) / (top - bottom); Result[3][0] = - (right + left) / (right - left); Result[3][1] = - (top + bottom) / (top - bottom); return Result; }
And what code was in 0.9.8.4:
template <typename T> GLM_FUNC_QUALIFIER tmat4x4<T, defaultp> ortho ( T left, T right, T bottom, T top ) { tmat4x4<T, defaultp> Result(static_cast<T>(1)); Result[0][0] = static_cast<T>(2) / (right - left); Result[1][1] = static_cast<T>(2) / (top - bottom); Result[2][2] = - static_cast<T>(1); // This line was forgotten in new releases Result[3][0] = - (right + left) / (right - left); Result[3][1] = - (top + bottom) / (top - bottom); return Result; }
The text was updated successfully, but these errors were encountered:
Fixed glm::ortho #790
848800b
Woah, this is quite a major issue... :/ This issue is fixed in master branch for GLM 0.9.9.1 release. Thanks for contributing, Christophe
Sorry, something went wrong.
Groovounet
No branches or pull requests
Component [2,2] in matrix for orthographic projection has wrong sign resulting some problems.
Currently code of build function is:
And what code was in 0.9.8.4:
The text was updated successfully, but these errors were encountered: