mirror of
https://github.com/recp/cglm.git
synced 2026-11-18 02:17:13 -06:00
affine: preserve translation in glm_spin
This commit is contained in:
1 parent
58d8c15a12
commit
d7b1e02778
4 files changed
+73
-1
No files matched your search
@@ -297,7 +297,7 @@ CGLM_INLINE
|
||||
void
|
||||
glm_spin(mat4 m, float angle, vec3 axis) {
|
||||
CGLM_ALIGN_MAT mat4 rot;
|
||||
glm_rotate_atm(rot, m[3], angle, axis);
|
||||
glm_rotate_make(rot, angle, axis);
|
||||
glm_mat4_mul(m, rot, m);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user