[vulkan] Correct a sign error in QFV_PerspectiveTanFar

Unfortunately, the function isn't used yet, so it's easy to miss. I just
happened to notice things didn't look right when looking at my
projection matrices.
This commit is contained in:
Bill Currie 2024-11-03 13:25:34 +09:00
parent c8fbb93424
commit addf877416

View file

@ -144,9 +144,9 @@ QFV_PerspectiveTanFar (mat4f_t proj, float fov_x, float fov_y,
float fx = fov_x;
float fy = fov_y;
proj[0] = (vec4f_t) { 1/fx, 0, 0, 0 };
proj[0] = (vec4f_t) { 1/fx, 0, 0, 0 };
proj[1] = (vec4f_t) { 0, 1/fy, 0, 0 };
proj[2] = (vec4f_t) { 0, 0, n/(n-f), 1 };
proj[2] = (vec4f_t) { 0, 0, -n/(n-f), 1 };
proj[3] = (vec4f_t) { 0, 0, n*f/(n-f), 0 };
}