mirror of https://github.com/bjornbytes/lovr.git
Change default setProjection far plane to 0;
It was accidentally left at 100, which will cause problems.
This commit is contained in:
parent
e9776f98c6
commit
0c281bca50
|
@ -188,7 +188,7 @@ static int l_lovrPassSetProjection(lua_State* L) {
|
|||
float up = luax_checkfloat(L, 5);
|
||||
float down = luax_checkfloat(L, 6);
|
||||
float clipNear = luax_optfloat(L, 7, .01f);
|
||||
float clipFar = luax_optfloat(L, 8, 100.f);
|
||||
float clipFar = luax_optfloat(L, 8, 0.f);
|
||||
float matrix[16];
|
||||
mat4_fov(matrix, left, right, up, down, clipNear, clipFar);
|
||||
lovrPassSetProjection(pass, view, matrix);
|
||||
|
|
Loading…
Reference in New Issue