From 94cf57ffee46e7a44d4fa38cbf0efecc0310f6ef Mon Sep 17 00:00:00 2001 From: Fierelier Date: Sun, 20 Aug 2023 06:52:57 +0200 Subject: [PATCH] "fix" clip --- src/3d.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/3d.c b/src/3d.c index 6d4331a..65b12ce 100644 --- a/src/3d.c +++ b/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; }