mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
Fixed the radar transform computation in 2.5D. The bug also affected fog rendering
This commit is contained in:
parent
9337240d49
commit
cfc62c5ee0
@ -5058,7 +5058,7 @@ EX void make_actual_view() {
|
|||||||
|
|
||||||
if(T[0][2])
|
if(T[0][2])
|
||||||
T = spin(-atan2(T[0][2], T[1][2])) * T;
|
T = spin(-atan2(T[0][2], T[1][2])) * T;
|
||||||
if(T[1][2] && T[2][2])
|
if(T[1][2])
|
||||||
T = cspin(1, 2, -atan2(T[1][2], T[2][2])) * T;
|
T = cspin(1, 2, -atan2(T[1][2], T[2][2])) * T;
|
||||||
|
|
||||||
ld z = -asin_auto(tC0(view_inverse(T)) [2]);
|
ld z = -asin_auto(tC0(view_inverse(T)) [2]);
|
||||||
|
Loading…
Reference in New Issue
Block a user