add mat4.from_quat(...) & update mat4.decompose(...)

This commit is contained in:
MihailRis
2024-07-19 07:48:42 +03:00
parent 2294690f29
commit 02c9c4ced3
16 changed files with 167 additions and 137 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ static int l_spherical_rand(lua::State* L) {
int argc = lua::gettop(L);
switch (argc) {
case 1:
return lua::pushvec3_arr(L, glm::sphericalRand(lua::tonumber(L, 1)));
return lua::pushvec3(L, glm::sphericalRand(lua::tonumber(L, 1)));
case 2:
return lua::setvec(L, 2,
glm::sphericalRand(static_cast<float>(lua::tonumber(L, 1))));