add zoom option to camera to work around the orthographic camera

This commit is contained in:
veclavtalica
2025-01-27 03:25:14 +03:00
parent 791ab628ca
commit 6a87119c70
5 changed files with 24 additions and 10 deletions

View File

@ -13,6 +13,7 @@ typedef struct Camera {
Vec3 target; /* normalized target vector */
Vec3 up; /* normalized up vector */
float fov; /* field of view, in radians */
Vec2 viewbox[2]; /* othrographic aabb, ((left, right), (top, bottom)) */
} Camera;
Matrix4 camera_look_at(const Camera *camera);