add vec2, vec3, vec4 libraries
This commit is contained in:
@@ -60,9 +60,9 @@ static int l_mul(lua::State* L) {
|
||||
}
|
||||
case 3: {
|
||||
if (len2 == 4) {
|
||||
return lua::setvec4(L, 3, matrix1 * lua::tovec4(L, 2));
|
||||
return lua::setvec(L, 3, matrix1 * lua::tovec4(L, 2));
|
||||
} else if (len2 == 3) {
|
||||
return lua::setvec3(L, 3, matrix1 * glm::vec4(lua::tovec3(L, 2), 1.0f));
|
||||
return lua::setvec(L, 3, matrix1 * glm::vec4(lua::tovec3(L, 2), 1.0f));
|
||||
}
|
||||
return lua::setmat4(L, 3, matrix1 * lua::tomat4(L, 2));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user