From 22f7663f3854e6c84953ecc8f35a43d0ac3e2bac Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 2 May 2024 13:12:28 +0900 Subject: [PATCH] Fix SC_SACD_Translate_Mat4(...) Translation Mat4 was missing a "1" in the first element. --- src/sc_sacd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sc_sacd.cpp b/src/sc_sacd.cpp index 7f6a218..52d7066 100644 --- a/src/sc_sacd.cpp +++ b/src/sc_sacd.cpp @@ -488,7 +488,7 @@ SC_SACD_Mat4 SC_SACD_Rotation_Mat4_ZAxis(float z_radians) { } SC_SACD_Mat4 SC_SACD_Translate_Mat4(float x, float y, float z) { - return SC_SACD_Mat4{0.0F, 0.0F, 0.0F, x, 0.0F, 1.0F, 0.0F, y, + return SC_SACD_Mat4{1.0F, 0.0F, 0.0F, x, 0.0F, 1.0F, 0.0F, y, 0.0F, 0.0F, 1.0F, z, 0.0F, 0.0F, 0.0F, 1.0F}; }