mirror of
https://github.com/recp/cglm.git
synced 2025-12-24 12:32:40 +00:00
Merge pull request #243 from Sand3r-/patch-1
Fix a bug in glm_lookat_lh
This commit is contained in:
@@ -37,8 +37,8 @@ glm_lookat_lh(vec3 eye, vec3 center, vec3 up, mat4 dest) {
|
||||
glm_vec3_sub(center, eye, f);
|
||||
glm_vec3_normalize(f);
|
||||
|
||||
glm_vec3_crossn(f, up, s);
|
||||
glm_vec3_cross(s, f, u);
|
||||
glm_vec3_crossn(up, f, s);
|
||||
glm_vec3_cross(f, s, u);
|
||||
|
||||
dest[0][0] = s[0];
|
||||
dest[0][1] = u[0];
|
||||
|
||||
Reference in New Issue
Block a user