mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-28 07:52:53 +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) {
|
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;
|
using namespace hyperpoint_vec;
|
||||||
hyperpoint center = Hypc;
|
hyperpoint center = Hypc;
|
||||||
for(int i=eye.s; i<eye.e; i++) if(q == 1 || hpc[i][1] > 0) center += hpc[i];
|
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() {
|
void make_3d_models() {
|
||||||
if(DIM == 2) return;
|
if(DIM == 2) return;
|
||||||
|
eyepos = WDIM == 2 ? 0.875 : 0.925;
|
||||||
DEBBI(DF_POLY, ("make_3d_models"));
|
DEBBI(DF_POLY, ("make_3d_models"));
|
||||||
shcenter = C0;
|
shcenter = C0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user