]> git.localhorst.tv Git - blank.git/blobdiff - src/world/block.cpp
renamed OutlineMesh -> PrimitiveMesh
[blank.git] / src / world / block.cpp
index 5059a999ca85d5e0010dd2f3b1a3ebe4830c8170..7050da4cc115532ad643b6d9d40a6a01edbdf5ef 100644 (file)
@@ -119,10 +119,10 @@ void BlockType::FillBlockMesh(
        buf.rgb_mods.insert(buf.rgb_mods.end(), shape->VertexCount(), rgb_mod);
 }
 
-void BlockType::FillOutlineMesh(OutlineMesh::Buffer &buf) const noexcept {
+void BlockType::OutlinePrimitiveMesh(PrimitiveMesh::Buffer &buf) const noexcept {
        if (!shape) return;
        shape->Outline(buf);
-       buf.colors.insert(buf.colors.end(), shape->OutlineCount(), outline_color);
+       buf.colors.insert(buf.colors.end(), shape->OutlineCount(), glm::vec4(outline_color, 1.0f));
 }