mirror of https://github.com/bjornbytes/lovr.git
Fix plane uv argument parsing;
This commit is contained in:
parent
011db5f1e5
commit
fa4f240b7b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue