mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-08 18:31:59 +00:00
[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:
parent
c8fbb93424
commit
addf877416
1 changed files with 2 additions and 2 deletions
|
@ -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 };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue