src/camera.c

changeset 41
df81d493716e
parent 37
8a8cc6725b48
child 47
44457f6cb0a2
--- a/src/camera.c	Thu Mar 21 20:48:18 2024 +0100
+++ b/src/camera.c	Thu Mar 21 22:23:00 2024 +0100
@@ -32,7 +32,7 @@
     float right = left + (float) camera->rect.size.width;
     float top = (float) camera->rect.pos.y;
     float bottom = top + (float) camera->rect.size.height;
-    asc_mat4f_ortho(camera->projection, left, right, bottom, top);
+    asc_mat4f_ortho(camera->projection, left, right, bottom, top, -1, 1);
 }
 
 void asc_camera_ortho(AscCamera *camera, asc_recti rect) {

mercurial