invert y
This commit is contained in:
parent
5b72bd3337
commit
9a3f070d6c
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user