From 1198c4467c16a8cc8480083062384089887ae924 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 7 Nov 2020 15:06:45 +0100 Subject: [PATCH] fixed projections other than perspective not working in 2.5D --- shaders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders.cpp b/shaders.cpp index 39daf1e2..c62262c6 100644 --- a/shaders.cpp +++ b/shaders.cpp @@ -295,7 +295,7 @@ shared_ptr write_shader(flagtype shader_flags) { if(!skip_t) { vmain += "mediump vec4 t = uMV * aPosition;\n"; vmain += coordinator; - if(GDIM == 3 && WDIM == 2 && hyperbolic && context_fog) { + if(GDIM == 3 && WDIM == 2 && hyperbolic && context_fog && pmodel == mdPerspective) { vsh += "uniform mediump mat4 uRadarTransform;\n" "uniform mediump sampler2D tAirMap;\n"