look_at, last correction I hope...

This commit is contained in:
Luc Girod 2014-04-25 21:31:22 +02:00
parent 767155a227
commit 6bade24aa7

View File

@ -244,7 +244,7 @@ sweet_matrix_look_at (vec3 pos, vec3 dir, vec3 up)
mat4 m; mat4 m;
mat4 t; mat4 t;
vec3 side; vec3 side;
side = sweet_vector_cross (up, dir); side = sweet_vector_cross (dir, up);
side = sweet_vector_normalize3 (side); side = sweet_vector_normalize3 (side);
up = sweet_vector_cross (side, dir); up = sweet_vector_cross (side, dir);
up = sweet_vector_normalize3 (up); up = sweet_vector_normalize3 (up);