mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
3D:: eyepos was calculated in wrong position
This commit is contained in:
parent
d6b81ed816
commit
c0684ac3c8
@ -738,7 +738,6 @@ hyperpoint psmin(hyperpoint H) {
|
||||
}
|
||||
|
||||
void adjust_eye(hpcshape& eye, hpcshape head, ld shift_eye, ld shift_head, int q, ld zoom=1) {
|
||||
eyepos = WDIM == 2 ? 0.875 : 0.925;
|
||||
using namespace hyperpoint_vec;
|
||||
hyperpoint center = Hypc;
|
||||
for(int i=eye.s; i<eye.e; i++) if(q == 1 || hpc[i][1] > 0) center += hpc[i];
|
||||
@ -836,6 +835,7 @@ void make_shadow(hpcshape& sh) {
|
||||
|
||||
void make_3d_models() {
|
||||
if(DIM == 2) return;
|
||||
eyepos = WDIM == 2 ? 0.875 : 0.925;
|
||||
DEBBI(DF_POLY, ("make_3d_models"));
|
||||
shcenter = C0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user