Fixing gb_mat4_look_at

This commit is contained in:
Chris Genova 2017-09-07 19:37:43 -07:00
parent d3e121a298
commit 5e906ad45b
1 changed files with 3 additions and 3 deletions

View File

@ -1731,9 +1731,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);
}