Fixed ZFar plane bug.

This commit is contained in:
Artem Kharytoniuk 2017-04-19 19:02:42 +03:00
parent 07f4d33492
commit 140bec0188

View File

@ -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];