1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

doubled texture for the second eye

This commit is contained in:
Zeno Rogue 2019-06-28 09:50:13 +02:00
parent 22b8a88e07
commit b260cbb91f

View File

@ -753,7 +753,11 @@ void geometry_information::adjust_eye(hpcshape& eye, hpcshape head, ld shift_eye
if(&eye == &shSkullEyes)
for(int i=eye.s; i<s; i++) hpc[i] = xpush(0.07 * scalefactor) * hpc[i];
if(q == 2)
for(int i=eye.s; i<s; i++) hpcpush(MirrorY * hpc[i]);
for(int i=eye.s; i<s; i++) {
hpcpush(MirrorY * hpc[i]);
auto& utt = models_texture;
utt.tvertices.push_back(utt.tvertices[i - eye.s + eye.texture_offset]);
}
finishshape();
// eye.prio = PPR::SUPERLINE;