|
@@ -207,6 +207,9 @@ void update()
|
|
|
projected.x *= windowWidth / 2.;
|
|
|
projected.y *= windowHeight / 2.;
|
|
|
|
|
|
+ /* Screen Y axis increase down, 3D world Y grows up, so we need to invert. */
|
|
|
+ projected.y *= -1.0;
|
|
|
+
|
|
|
projected.x += (windowWidth / 2.);
|
|
|
projected.y += (windowHeight / 2.);
|
|
|
|