1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-16 10:14:48 +00:00

3d:: fixed halfplane_scale in GL

This commit is contained in:
Zeno Rogue 2019-03-21 19:11:47 +01:00
parent 8ea5a618ad
commit 31427a6d24

View File

@ -316,7 +316,7 @@ void display_data::set_projection(int ed, bool apply_models) {
glhr::projection_multiply(model_orientation_gl()); glhr::projection_multiply(model_orientation_gl());
glhr::projection_multiply(glhr::translate(0, 1, 0)); glhr::projection_multiply(glhr::translate(0, 1, 0));
glhr::projection_multiply(glhr::scale(-1, 1, 1)); glhr::projection_multiply(glhr::scale(-1, 1, 1));
glhr::projection_multiply(glhr::scale(conformal::halfplane_scale, conformal::halfplane_scale, 1)); glhr::projection_multiply(glhr::scale(conformal::halfplane_scale, conformal::halfplane_scale, DIM == 3 ? conformal::halfplane_scale : 1));
glhr::projection_multiply(glhr::translate(0, 0.5, 0)); glhr::projection_multiply(glhr::translate(0, 0.5, 0));
} }
} }