look_at, last correction I hope...
This commit is contained in:
parent
767155a227
commit
6bade24aa7
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user