1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 01:47:39 +00:00

3D:: dog stripes

This commit is contained in:
Zeno Rogue
2019-06-01 19:50:17 +02:00
parent 1077abf223
commit 5d7a01febe
2 changed files with 12 additions and 2 deletions

View File

@@ -564,6 +564,16 @@ void geometry_information::make_revolution_cut(hpcshape &sh, int each, ld push,
last->flags |= POLY_TRIANGLES;
add_texture(sh);
shift_last(-push);
if(&sh == &shDogTorso) {
finishshape();
shDogStripes = shDogTorso;
auto& utt = models_texture;
int a = (6 * 360 / step);
for(int i=0; i<shDogStripes.e - shDogStripes.s; i++)
if(i % (2 * a) < a)
utt.tvertices[i + shDogStripes.texture_offset][1] /= 4;
}
}
void disable(hpcshape& sh) {