Eevee: Fix render z-depth for orthographic camera

Fix last commit
This commit is contained in:
Clément Foucault 2019-05-27 13:29:29 +02:00
parent 24ac970624
commit af4feee61c
1 changed files with 2 additions and 1 deletions

View File

@ -379,7 +379,8 @@ static void eevee_render_result_z(RenderLayer *rl,
rp->rect[i] = -viewmat[3][2] / (rp->rect[i] + viewmat[2][2]);
}
else {
rp->rect[i] = common_data->view_vecs[0][2] + rp->rect[i] * common_data->view_vecs[1][2];
rp->rect[i] = -common_data->view_vecs[0][2] +
rp->rect[i] * -common_data->view_vecs[1][2];
}
}
}