affine: preserve translation in glm_spin

This commit is contained in:
fhgffy committed 2026-10-04 20:31:02 +08:00
1 parent 58d8c15a12
commit d7b1e02778
4 files changed
+73 -1

No files matched your search

+1 -1
View File
@@ -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);
}