mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50: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
@ -5056,9 +5056,9 @@ EX void make_actual_view() {
|
||||
transmatrix T = actual_view_transform * View;
|
||||
transmatrix U = view_inverse(T);
|
||||
|
||||
if(T[0][2])
|
||||
if(T[0][2])
|
||||
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;
|
||||
|
||||
ld z = -asin_auto(tC0(view_inverse(T)) [2]);
|
||||
|
Loading…
Reference in New Issue
Block a user