1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-14 04:37:10 +00:00

3D:: correct shift matrix in stereo mode

This commit is contained in:
Zeno Rogue
2019-06-25 11:22:47 +02:00
parent a6d9f8f679
commit 0f98146d20
3 changed files with 16 additions and 2 deletions

View File

@@ -297,8 +297,12 @@ void display_data::set_projection(int ed) {
}
if(ed) glhr::projection_multiply(glhr::translate(vid.ipd * ed/2, 0, 0));
if(ed) {
if(pers3)
glhr::projection_multiply(glhr::tmtogl(xpush(vid.ipd * ed/2)));
else
glhr::projection_multiply(glhr::translate(vid.ipd * ed/2, 0, 0));
}
if(pers3) {
glhr::fog_max(1/sightranges[geometry], darkena(backcolor, 0, 0xFF));