1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-03 11:17:56 +00:00

3D geometries should now render without OpenGL

This commit is contained in:
Zeno Rogue
2020-04-06 10:43:28 +02:00
parent 43fd94bed6
commit c1ed54763b
5 changed files with 41 additions and 5 deletions

View File

@@ -585,6 +585,7 @@ void geometry_information::make_revolution_cut(hpcshape &sh, int each, ld push,
shDogStripes = shDogTorso;
add_texture(shDogStripes);
auto& utt = models_texture;
if(utt.tvertices.empty()) return;
int a = (6 * 360 / step);
for(int i=0; i<shDogStripes.e - shDogStripes.s; i++)
if(i % (2 * a) < a)
@@ -770,7 +771,8 @@ void geometry_information::adjust_eye(hpcshape& eye, hpcshape head, ld shift_eye
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]);
if(!utt.tvertices.empty())
utt.tvertices.push_back(utt.tvertices[i - eye.s + eye.texture_offset]);
}
finishshape();