mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-19 15:20:27 +00:00
3D:: flatten Z in the correct direction in full 3D
This commit is contained in:
parent
4e4a3a65a7
commit
91a83035da
@ -1337,6 +1337,7 @@ transmatrix atscreenpos(ld x, ld y, ld size) {
|
|||||||
V[1][3] += (y - current_display->ycenter);
|
V[1][3] += (y - current_display->ycenter);
|
||||||
V[0][0] = size * 2 * cgi.hcrossf / cgi.crossf;
|
V[0][0] = size * 2 * cgi.hcrossf / cgi.crossf;
|
||||||
V[1][1] = size * 2 * cgi.hcrossf / cgi.crossf;
|
V[1][1] = size * 2 * cgi.hcrossf / cgi.crossf;
|
||||||
|
if(WDIM == 3) V[2][2] = -1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
V[0][2] += (x - current_display->xcenter);
|
V[0][2] += (x - current_display->xcenter);
|
||||||
|
Loading…
Reference in New Issue
Block a user