"fix" clip
This commit is contained in:
parent
a680b1e63d
commit
94cf57ffee
8
src/3d.c
8
src/3d.c
@ -74,10 +74,10 @@ void engine_3d_rendertarget_draw_quad(
|
||||
engine_3d_project(&v23,wx4,wy4,wz4,rx,ry,rz,fovHor,fovVert);
|
||||
|
||||
if (
|
||||
(v20.x < -1.0 || v20.x > 1.0 || v20.y < -1.0 || v20.y > 1.0) &&
|
||||
(v21.x < -1.0 || v21.x > 1.0 || v21.y < -1.0 || v21.y > 1.0) &&
|
||||
(v22.x < -1.0 || v22.x > 1.0 || v22.y < -1.0 || v22.y > 1.0) &&
|
||||
(v23.x < -1.0 || v23.x > 1.0 || v23.y < -1.0 || v23.y > 1.0)
|
||||
(v20.x < -2.0 || v20.x > 2.0 || v20.y < -2.0 || v20.y > 2.0) &&
|
||||
(v21.x < -2.0 || v21.x > 2.0 || v21.y < -2.0 || v21.y > 2.0) &&
|
||||
(v22.x < -2.0 || v22.x > 2.0 || v22.y < -2.0 || v22.y > 2.0) &&
|
||||
(v23.x < -2.0 || v23.x > 2.0 || v23.y < -2.0 || v23.y > 2.0)
|
||||
) { // Wall is entirely out of bounds
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user