From 642f0899b58a021210c784a3e9b808e234322095 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 30 Sep 2021 13:22:48 +0200 Subject: [PATCH] fixed box display which sometimes removed parts of the picture --- shaders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders.cpp b/shaders.cpp index 23eeaa3d..31a4d286 100644 --- a/shaders.cpp +++ b/shaders.cpp @@ -571,7 +571,7 @@ void display_data::set_projection(int ed, ld shift) { auto cols = glhr::acolor(darkena(backcolor, 0, 0xFF)); glUniform4f(selected->uFogColor, cols[0], cols[1], cols[2], cols[3]); } - else M[2][2] /= 1000; + else M[2][2] /= 10000; glhr::projection_multiply(M); if(nisot::local_perspective_used() && (shader_flags & SF_BOX)) glhr::projection_multiply(glhr::tmtogl_transpose(NLP));