1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 15:37:40 +00:00

ray:: stereo modes

This commit is contained in:
Zeno Rogue
2019-11-16 03:04:01 +01:00
parent 838d6a583a
commit 928e369977
4 changed files with 33 additions and 12 deletions

View File

@@ -1882,6 +1882,11 @@ EX void draw_main() {
}
}
else {
if(ray::in_use && !ray::comparison_mode) {
ray::cast();
reset_projection();
}
for(auto& ptd: ptds) if(ptd->prio == PPR::OUTCIRCLE)
ptd->draw();
@@ -1892,6 +1897,13 @@ EX void draw_main() {
ptd->draw();
}
glflush();
if(ray::in_use && ray::comparison_mode) {
glDepthFunc(GL_LEQUAL);
glClearDepth(1.0f);
glClear(GL_DEPTH_BUFFER_BIT);
ray::cast();
}
}
}