3D:: dog stripes

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:50:05 +02:00
1 parent 1077abf223
commit 5d7a01febe
2 files changed
+12 -2

No files matched your search

+10
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) {