vec: normalize cross product helper

This commit is contained in:
Recep Aslantas
2018-12-06 18:01:52 +03:00
parent 92605f845a
commit 2ef9c23a6c
6 changed files with 61 additions and 29 deletions

View File

@@ -323,9 +323,7 @@ glm_lookat(vec3 eye,
glm_vec3_sub(center, eye, f);
glm_vec3_normalize(f);
glm_vec3_cross(f, up, s);
glm_vec3_normalize(s);
glm_vec3_crossn(f, up, s);
glm_vec3_cross(s, f, u);
dest[0][0] = s[0];