fixed 20/21 resolution in multi-cell spaces

This commit is contained in:
Zeno Rogue 2021-10-07 23:16:16 +02:00
parent 2b8c19a6f7
commit a04635111c
1 changed files with 2 additions and 2 deletions

View File

@ -1248,14 +1248,14 @@ void raygen::emit_iterate(int gid1) {
"if(which == 20) {\n"
" mediump float best = 999.;\n"
+w20+
" mediump float cand = "+f_len_prod()+"(" + getM("i") + " * position);\n"
" mediump float cand = "+f_len_prod()+"(" + getM("walloffset+i") + " * position);\n"
" if(cand < best) { best = cand; which = i; }\n"
" }\n"
"}\n"
"if(which == 21) {\n"
"mediump float best = 999.;\n"
+w21+
" mediump float cand = "+f_len_prod()+"(" + getM("i") + " * position);\n"
" mediump float cand = "+f_len_prod()+"(" + getM("walloffset+i") + " * position);\n"
" if(cand < best) { best = cand; which = i; }\n"
" }\n"
"}\n";