1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-10 05:19:04 +00:00

backandfront projection option

This commit is contained in:
Zeno Rogue
2021-09-18 01:39:09 +02:00
parent a7ddaae7d4
commit 96c143da8e
4 changed files with 18 additions and 0 deletions

View File

@@ -652,6 +652,8 @@ void display_data::set_projection(int ed, ld shift) {
GLfloat sc = current_display->radius / (cd->ysize/2.);
glhr::projection_multiply(glhr::frustum(cd->xsize / cd->ysize, 1));
glhr::projection_multiply(glhr::scale(sc, -sc, -1));
if(pconf.back_and_front)
glhr::projection_multiply(glhr::scale(-1,-1,-1));
u_alpha = true;
}