From c2abc1050cc25222f81c2cf1fde3c0d7fb6e3b76 Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Fri, 2 Aug 2024 14:39:55 -0400 Subject: [PATCH] fix anti-aliasing kinda lazily though, will improve when it's time to rework aa --- src/GPU3D_Soft.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/GPU3D_Soft.h b/src/GPU3D_Soft.h index 85d500dc..e1fd4d05 100644 --- a/src/GPU3D_Soft.h +++ b/src/GPU3D_Soft.h @@ -355,7 +355,11 @@ private: // for the first pixel, and the increment for // further pixels on the same scanline // TODO: check how coverage interacts with line gaps, I think it's correct though? - s32 startx = dx >> 18; + s32 startx = dx; + if (side ^ Negative) startx += Increment; + startx >>= 18; + //s32 startcov = (startx * ylen) /9 xlen; + if (Negative) startx = xlen - startx; if (side) startx = startx - *length + 1;