Fix plane uv argument parsing;

This commit is contained in:
bjorn 2019-04-05 05:50:43 -07:00
parent 011db5f1e5
commit fa4f240b7b
1 changed files with 4 additions and 4 deletions

View File

@ -764,10 +764,10 @@ static int l_lovrGraphicsPlane(lua_State* L) {
}
float transform[16];
int index = luax_readmat4(L, 2, transform, 2);
float u = luax_optfloat(L, index, 0.f);
float v = luax_optfloat(L, index, 0.f);
float w = luax_optfloat(L, index, 1.f - u);
float h = luax_optfloat(L, index, 1.f - v);
float u = luax_optfloat(L, index++, 0.f);
float v = luax_optfloat(L, index++, 0.f);
float w = luax_optfloat(L, index++, 1.f - u);
float h = luax_optfloat(L, index++, 1.f - v);
lovrGraphicsPlane(style, material, transform, u, v, w, h);
return 0;
}