1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-06-29 23:38:49 +00:00

2D3D:: eye level

This commit is contained in:
Zeno Rogue
2019-06-01 19:58:07 +02:00
parent 5d7a01febe
commit 01763d4f12
5 changed files with 28 additions and 2 deletions
+3 -1
View File
@@ -736,7 +736,9 @@ void geometry_information::adjust_eye(hpcshape& eye, hpcshape head, ld shift_eye
qtyall++;
}
if(&eye == &shSkullEyes) pos = zc(eyepos) - 0.06 * SH * 0.05;
if(&eye == &shSkullEyes) cgi.eyelevel_human = pos = zc(eyepos) - 0.06 * SH * 0.05;
if(&eye == &shWolf1) cgi.eyelevel_dog = pos;
if(&eye == &shFamiliarEye) cgi.eyelevel_familiar = pos;
make_ball(eye, rad, 0);
transmatrix T = zpush(-shift_eye) * rgpushxto0(center) * zpush(pos);