36 std::vector<Cube> cubes;
38 if (gate.land != land) {
41 const Place& place = gate.place;
42 for (
int i = 0; i < kStones; ++i) {
43 const float angle = 2.0f * std::numbers::pi_v<float> * i / kStones;
44 const float x = place.
x + kRing * std::cos(angle);
45 const float z = place.
z + kRing * std::sin(angle);
47 const float ground = terrain.
Height(x, z);
48 cubes.push_back({.position = {x, ground + kBase.y / 2 - kSunk, z},
50 .color =
kLooks[land].rock});
51 cubes.push_back({.position = {x, ground +
kStone.y / 2, z},
53 .color =
kLooks[land].rock,
56 const float ground = terrain.
Height(place.
x, place.
z);
58 cubes.push_back({.position = {place.
x, ground, place.
z},
59 .size = {across, kPlatform, across},
60 .color =
kLooks[land].rock,
62 const std::array<float, 3>& sky =
kLooks[gate.to].atmosphere.sky;
64 {.position = {place.
x, ground, place.
z},
66 .color = ColorFromNormalized({sky[0], sky[1], sky[2], 1.0f}),