Merge pull request #26 from ravencgg/mat4_look_at_fix

mat4_look_at fix
This commit is contained in:
gingerBill 2018-12-14 14:59:01 +00:00 committed by GitHub
commit 12f087bf65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1732,9 +1732,9 @@ void gb_mat4_look_at(gbMat4 *out, gbVec3 eye, gbVec3 centre, gbVec3 up) {
m[1][2] = -f.y;
m[2][2] = -f.z;
m[3][0] = gb_vec3_dot(s, eye);
m[3][1] = gb_vec3_dot(u, eye);
m[3][2] = gb_vec3_dot(f, eye);
m[3][0] = -gb_vec3_dot(s, eye);
m[3][1] = -gb_vec3_dot(u, eye);
m[3][2] = +gb_vec3_dot(f, eye);
}