- shape->Vertices(model.vertices, model.normals, model.indices, pos_offset, idx_offset);
- model.colors.insert(model.colors.end(), shape->VertexCount(), color);
+ shape->Vertices(buf.vertices, buf.normals, buf.indices, pos_offset, idx_offset);
+ buf.colors.insert(buf.colors.end(), shape->VertexCount(), color);