"fix" clip

This commit is contained in:
Fierelier 2023-08-20 06:52:57 +02:00
parent a680b1e63d
commit 94cf57ffee

View File

@ -74,10 +74,10 @@ void engine_3d_rendertarget_draw_quad(
engine_3d_project(&v23,wx4,wy4,wz4,rx,ry,rz,fovHor,fovVert); engine_3d_project(&v23,wx4,wy4,wz4,rx,ry,rz,fovHor,fovVert);
if ( if (
(v20.x < -1.0 || v20.x > 1.0 || v20.y < -1.0 || v20.y > 1.0) && (v20.x < -2.0 || v20.x > 2.0 || v20.y < -2.0 || v20.y > 2.0) &&
(v21.x < -1.0 || v21.x > 1.0 || v21.y < -1.0 || v21.y > 1.0) && (v21.x < -2.0 || v21.x > 2.0 || v21.y < -2.0 || v21.y > 2.0) &&
(v22.x < -1.0 || v22.x > 1.0 || v22.y < -1.0 || v22.y > 1.0) && (v22.x < -2.0 || v22.x > 2.0 || v22.y < -2.0 || v22.y > 2.0) &&
(v23.x < -1.0 || v23.x > 1.0 || v23.y < -1.0 || v23.y > 1.0) (v23.x < -2.0 || v23.x > 2.0 || v23.y < -2.0 || v23.y > 2.0)
) { // Wall is entirely out of bounds ) { // Wall is entirely out of bounds
return; return;
} }