-void BlockType::FillOutlineModel(
- OutlineModel::Buffer &buf,
- const glm::vec3 &pos_offset,
- OutlineModel::Index idx_offset
-) const noexcept {
- shape->Outline(buf.vertices, buf.indices, pos_offset, idx_offset);
- buf.colors.insert(buf.colors.end(), shape->OutlineCount(), outline_color);
+void BlockType::OutlinePrimitiveMesh(PrimitiveMesh::Buffer &buf) const noexcept {
+ if (!shape) return;
+ shape->Outline(buf);
+ buf.colors.insert(buf.colors.end(), shape->OutlineCount(), glm::vec4(outline_color, 1.0f));