if (buf.colors.size() < buf.vertices.size()) {
std::cerr << "EntityModel: not enough colors!" << std::endl;
}
if (buf.colors.size() < buf.vertices.size()) {
std::cerr << "EntityModel: not enough colors!" << std::endl;
}
vao.PushAttribute(ATTRIB_COLOR, buf.colors);
vao.PushAttribute(ATTRIB_NORMAL, buf.normals);
vao.PushIndices(ATTRIB_INDEX, buf.indices);
vao.PushAttribute(ATTRIB_COLOR, buf.colors);
vao.PushAttribute(ATTRIB_NORMAL, buf.normals);
vao.PushIndices(ATTRIB_INDEX, buf.indices);
if (buf.colors.size() < buf.vertices.size()) {
std::cerr << "BlockModel: not enough colors!" << std::endl;
}
if (buf.colors.size() < buf.vertices.size()) {
std::cerr << "BlockModel: not enough colors!" << std::endl;
}
vao.PushAttribute(ATTRIB_COLOR, buf.colors);
vao.PushAttribute(ATTRIB_LIGHT, buf.lights);
vao.PushIndices(ATTRIB_INDEX, buf.indices);
vao.PushAttribute(ATTRIB_COLOR, buf.colors);
vao.PushAttribute(ATTRIB_LIGHT, buf.lights);
vao.PushIndices(ATTRIB_INDEX, buf.indices);