1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-09 15:39:55 +00:00

fixed twist_zlevel in nil, wrong alpha

This commit is contained in:
Zeno Rogue 2024-06-18 11:21:20 +02:00
parent b5c20ef1da
commit 4e090ed365

View File

@ -1410,7 +1410,7 @@ void raygen::emit_iterate(int gid1) {
else if(mtwisted) {
fmain += "pos = twist_coordinates(pos, sides-2, which);\n";
string spinner = "h = cspin(0, 1, PI) * h;\n";
string calc_dxy = nil ? "dx = h.x; dy = h.y;\n" : sl2 ?
string calc_dxy = nil ? "dx = h.x; dy = -h.y;\n" : sl2 ?
"dx = -2. * (h.y*h.z - h.x*h.w);\n"
"dy = -2. * (h.x*h.z + h.y*h.w);\n" :
"dx = +2. * (h.x*h.z + h.y*h.w);\n"