+ makeCuboid(&collector, box, &glass_tiles[i], 1, c, txc2);
+ }
+
+ if (param2 > 0){
+ // Interior volume level is in range 0 .. 63,
+ // convert it to -0.5 .. 0.5
+ float vlev = (((float)param2 / 63.0 ) * 2.0 - 1.0);
+ TileSpec interior_tiles[6];
+ for (i = 0; i < 6; i++)
+ interior_tiles[i] = f.special_tiles[0];
+ float offset = 0.003;
+ box = aabb3f(visible_faces[3] ? -b : -a + offset,
+ visible_faces[1] ? -b : -a + offset,
+ visible_faces[5] ? -b : -a + offset,
+ visible_faces[2] ? b : a - offset,
+ visible_faces[0] ? b * vlev : a * vlev - offset,
+ visible_faces[4] ? b : a - offset);
+ box.MinEdge += pos;
+ box.MaxEdge += pos;
+ tx1 = (box.MinEdge.X / BS) + 0.5;
+ ty1 = (box.MinEdge.Y / BS) + 0.5;
+ tz1 = (box.MinEdge.Z / BS) + 0.5;
+ tx2 = (box.MaxEdge.X / BS) + 0.5;
+ ty2 = (box.MaxEdge.Y / BS) + 0.5;
+ tz2 = (box.MaxEdge.Z / BS) + 0.5;
+ f32 txc3[24] = {
+ tx1, 1-tz2, tx2, 1-tz1,
+ tx1, tz1, tx2, tz2,
+ tz1, 1-ty2, tz2, 1-ty1,
+ 1-tz2, 1-ty2, 1-tz1, 1-ty1,
+ 1-tx2, 1-ty2, 1-tx1, 1-ty1,
+ tx1, 1-ty2, tx2, 1-ty1,
+ };
+ makeCuboid(&collector, box, interior_tiles, 6, c, txc3);