]> git.localhorst.tv Git - blank.git/blobdiff - src/model/shape.cpp
sky box model & shader
[blank.git] / src / model / shape.cpp
index 4ee5b8f24299c74163c48d5bc3c5c7b46d5ae773..7422f899e856297f7ccb2f49bbbf53c2c2fa991a 100644 (file)
@@ -59,6 +59,17 @@ void Shape::Vertices(
        }
 }
 
+void Shape::Vertices(
+       SkyBoxModel::Buffer &out
+) const {
+       for (const auto &pos : vtx_pos) {
+               out.vertices.emplace_back(pos);
+       }
+       for (auto idx : vtx_idx) {
+               out.indices.emplace_back(idx);
+       }
+}
+
 void Shape::Outline(OutlineModel::Buffer &out) const {
        out.vertices.insert(out.vertices.end(), out_pos.begin(), out_pos.end());
        out.indices.insert(out.indices.end(), out_idx.begin(), out_idx.end());