From cdc427a54b92d7e3cfc0c5af994911ec27508ff7 Mon Sep 17 00:00:00 2001 From: opfez Date: Tue, 23 Nov 2021 16:23:03 +0100 Subject: [PATCH] explaining comment --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 6faffda..ab798a7 100644 --- a/main.c +++ b/main.c @@ -339,6 +339,8 @@ draw_horizontal_line( if (dx < 1) return; for (int32_t x = x0; x <= x1; x++) { + /* doing bresenham in the z-axis to find the points where we + * should/shouldn't draw */ eps += dz; while (eps > 0) { eps -= dx;