1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-21 08:57:39 +00:00

2D3D:: palace gates

This commit is contained in:
Zeno Rogue
2019-05-25 01:36:22 +02:00
parent b8919c884c
commit 67f3bd6a3c
2 changed files with 25 additions and 1 deletions

View File

@@ -1075,6 +1075,23 @@ void make_3d_models() {
shift_shape(shSemiFloorShadow, geom3::FLOOR - geom3::human_height / 100);
shift_shape(shSemiFloor[0], geom3::WALL);
bshape(shPalaceGate, PPR::WALL);
for(int i=0; i<4; i++) {
ld x = -0.219482 + (0.135153 + 0.219482) * (i+.5) / 4;
for(int j=0; j<12; j++) {
hyperpoint left = xpush(x) * xspinpush0(j * 30 * degree, 0.02);
hyperpoint right = xpush(x) * xspinpush0((j+1) * 30 * degree, 0.02);
hpcpush(orthogonal_move(left, geom3::FLOOR));
hpcpush(orthogonal_move(right, geom3::FLOOR));
hpcpush(orthogonal_move(left, geom3::WALL));
hpcpush(orthogonal_move(right, geom3::FLOOR));
hpcpush(orthogonal_move(left, geom3::WALL));
hpcpush(orthogonal_move(right, geom3::WALL));
}
}
shPalaceGate.flags |= POLY_TRIANGLES;
finishshape();
}
#undef S