, color(col)
, outline_color(-1, -1, -1)
, id(0)
+, luminosity(0)
, visible(v)
+, block_light(false)
, fill({ false, false, false, false, false, false }) {
}
buf.colors.insert(buf.colors.end(), shape->VertexCount(), color);
}
+void BlockType::FillBlockModel(
+ BlockModel::Buffer &buf,
+ const glm::mat4 &transform,
+ BlockModel::Index idx_offset
+) const {
+ shape->Vertices(buf.vertices, buf.normals, buf.indices, transform, idx_offset);
+ buf.colors.insert(buf.colors.end(), shape->VertexCount(), color);
+}
+
void BlockType::FillOutlineModel(
OutlineModel &model,
const glm::vec3 &pos_offset,