mirror of https://github.com/bjornbytes/lovr.git
Fix Pass:translate;
This commit is contained in:
parent
e07a2691e0
commit
3013567e73
|
@ -135,8 +135,8 @@ static int l_lovrPassOrigin(lua_State* L) {
|
||||||
|
|
||||||
static int l_lovrPassTranslate(lua_State* L) {
|
static int l_lovrPassTranslate(lua_State* L) {
|
||||||
float translation[4];
|
float translation[4];
|
||||||
Pass* pass = luax_checktype(L, 2, Pass);
|
Pass* pass = luax_checktype(L, 1, Pass);
|
||||||
luax_readvec3(L, 1, translation, NULL);
|
luax_readvec3(L, 2, translation, NULL);
|
||||||
lovrPassTranslate(pass, translation);
|
lovrPassTranslate(pass, translation);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue