fixed projections other than perspective not working in 2.5D

This commit is contained in:
Zeno Rogue 2020-11-07 15:06:45 +01:00
parent f57229134c
commit 1198c4467c
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ shared_ptr<glhr::GLprogram> 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"