-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
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
Add Mat4::ortho
#32
Comments
Hi, yeah I'd happily accept a PR for orthographic projections! I'd suggest following the current naming convention that's used for perspective projections like So perhaps Also I've tried to add tests for most functionality in |
Note to self, I found some projection matrix unit tests in handmade math that I might give me some ideas for glam https://github.com/HandmadeMath/Handmade-Math/blob/master/test/categories/Projection.h |
A little WIP at the moment still, but it's Code That I've Used So I Know It Works(tm). Barring typos, I guess. Also checked against `glm::ortho`. I agree that we do want actual unit tests though, so that's what I'm going to attempt next. Will resolve bitshifter#32.
* Basic right-handed orthographic matrix function. A little WIP at the moment still, but it's Code That I've Used So I Know It Works(tm). Barring typos, I guess. Also checked against `glm::ortho`. I agree that we do want actual unit tests though, so that's what I'm going to attempt next. Will resolve #32. * Added unit tests for Mat4::orthographic_rh() Which actually revealed significant bugs. XD Well, that's what the test is for! * aw heck, I left in commented-out code. Removed.
Because orthographic projections are cool. If you want this, I'll happily PR it.
The text was updated successfully, but these errors were encountered: