ray:: fixed mirrors in product when cells have different degrees

This commit is contained in:
Zeno Rogue 2021-07-09 20:35:44 +02:00
parent f3fec9434a
commit 4799f7c5f7
1 changed files with 1 additions and 1 deletions

View File

@ -1368,7 +1368,7 @@ void enable_raycaster() {
" }\n";
if(use_reflect) {
if(prod) fmain += "if(reflect && which >= "+its(deg-2)+") { zspeed = -zspeed; continue; }\n";
if(prod) fmain += "if(reflect && which >= sides-2) { zspeed = -zspeed; continue; }\n";
if(hyperbolic && bt::in()) fmain +=
"if(reflect && (which < "+its(flat1)+" || which >= "+its(flat2)+")) {\n"
" mediump float x = -log(position.w - position.x);\n"