X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.cpp;fp=src%2Fworld%2FEntity.cpp;h=072bb38d38ab2350c2da582c6946fe86c80b33ac;hb=7bb75960dbf9bfdee9ac865384aca81791b3da5c;hp=4a34a111dd35d6ca586780d49eaa0e1d323fecb8;hpb=a34fbcb0581056bd464158acfa30289a3e2c2c2d;p=blank.git diff --git a/src/world/Entity.cpp b/src/world/Entity.cpp index 4a34a11..072bb38 100644 --- a/src/world/Entity.cpp +++ b/src/world/Entity.cpp @@ -30,10 +30,10 @@ Entity::Entity() noexcept } -void Entity::SetShape(const Shape *s, const glm::vec3 &color) { +void Entity::SetShape(const Shape *s, const glm::vec3 &color, float texture) { shape = s; model_buffer.Clear(); - shape->Vertices(model_buffer.vertices, model_buffer.normals, model_buffer.indices); + shape->Vertices(model_buffer, texture); model_buffer.colors.resize(shape->VertexCount(), color); model.Update(model_buffer); }