twn_camera: fix aspect of ortho projection

This commit is contained in:
veclavtalica
2025-03-07 11:07:05 +03:00
parent 67feb5974a
commit a03e1d885d
3 changed files with 11 additions and 14 deletions

View File

@ -12,7 +12,7 @@ typedef struct Camera {
Vec3 pos; /* eye position */
Vec3 target; /* normalized target vector */
Vec3 up; /* normalized up vector */
Vec2 viewbox[2]; /* othrographic aabb, ((left, right), (top, bottom)) */
Vec4 viewbox; /* othrographic aabb, ((left, right), (top, bottom)) */
float fov; /* field of view, in radians */
float far_z;
} Camera;