mirror of
https://github.com/recp/cglm.git
synced 2026-11-17 10:17:13 -06:00
Fix bug in view_lh.h #2
Reverse order of parameters in the second crossproduct
This commit is contained in:
1 parent
7d47b7f1fd
commit
7e211e1f49
1 file changed
+1
-1
@@ -38,7 +38,7 @@ glm_lookat_lh(vec3 eye, vec3 center, vec3 up, mat4 dest) {
|
||||
glm_vec3_normalize(f);
|
||||
|
||||
glm_vec3_crossn(up, f, s);
|
||||
glm_vec3_cross(s, f, u);
|
||||
glm_vec3_cross(f, s, u);
|
||||
|
||||
dest[0][0] = s[0];
|
||||
dest[0][1] = u[0];
|
||||
|
||||
Reference in new issue
Block a user