From a1225228d8087dc6b6f36b7a9b49f9567b5ec93b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 22 Nov 2018 22:10:27 +0100 Subject: [PATCH] fixed halfplane model orientation shaderside --- basegraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basegraph.cpp b/basegraph.cpp index 63ab3bdc..e46cb230 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -257,15 +257,15 @@ void display_data::set_projection(int ed, bool apply_models) { current_display->scrdist_text = cd->ysize * sc / 2; if(glhr::new_shader_projection == glhr::shader_projection::band) { - glhr::projection_multiply(glhr::scale(2 / M_PI, 2 / M_PI,1)); glhr::projection_multiply(model_orientation_gl()); + glhr::projection_multiply(glhr::scale(2 / M_PI, 2 / M_PI,1)); } if(glhr::new_shader_projection == glhr::shader_projection::halfplane) { + glhr::projection_multiply(model_orientation_gl()); glhr::projection_multiply(glhr::translate(0, 1, 0)); glhr::projection_multiply(glhr::scale(-1, 1, 1)); glhr::projection_multiply(glhr::scale(conformal::halfplane_scale, conformal::halfplane_scale, 1)); - glhr::projection_multiply(model_orientation_gl()); glhr::projection_multiply(glhr::translate(0, 0.5, 0)); } }