Fixed ZFar plane bug.
This commit is contained in:
parent
07f4d33492
commit
140bec0188
|
|
@ -1136,7 +1136,7 @@ void vk_get_mvp_transform(float mvp[16]) {
|
|||
|
||||
// update q3's proj matrix (opengl) to vulkan conventions: z - [0, 1] instead of [-1, 1] and invert y direction
|
||||
float zNear = r_znear->value;
|
||||
float zFar = tr.viewParms.zFar;
|
||||
float zFar = backEnd.viewParms.zFar;
|
||||
float P10 = -zFar / (zFar - zNear);
|
||||
float P14 = -zFar*zNear / (zFar - zNear);
|
||||
float P5 = -p[5];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user