From 9a3f070d6c49d55709d4544884d96dc3eefb8a8a Mon Sep 17 00:00:00 2001 From: jb Date: Tue, 15 Jul 2025 15:29:28 -0700 Subject: [PATCH] invert y --- scripts/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/main.c b/scripts/main.c index 90b9607..3a144d4 100644 --- a/scripts/main.c +++ b/scripts/main.c @@ -232,6 +232,9 @@ void update(void) { projected_points[j].x *= (window_width / 2.0); projected_points[j].y *= (window_height / 2.0); + // invert y to account for flipped screen y coordinates + projected_points[j].y *= -1; + // Translate the projected points to the middle of the screen projected_points[j].x += (window_width / 2.0); projected_points[j].y += (window_height / 2.0);