summaryrefslogtreecommitdiff
path: root/engine/xe_model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engine/xe_model.cpp')
-rw-r--r--engine/xe_model.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/engine/xe_model.cpp b/engine/xe_model.cpp
index 48f9ad2..6720c13 100644
--- a/engine/xe_model.cpp
+++ b/engine/xe_model.cpp
@@ -117,7 +117,7 @@ void Model::Builder::loadModel(const std::string &filepath) {
indices.clear();
vertexSize = 0;
- bool vertex, color, normal, uvs;
+ bool vertex, normal, uvs;
for (const auto &shape : shapes) {
for (const auto &index : shape.mesh.indices) {
@@ -127,11 +127,6 @@ void Model::Builder::loadModel(const std::string &filepath) {
vertexData.push_back(attrib.vertices[3 * index.vertex_index + 1]);
vertexData.push_back(attrib.vertices[3 * index.vertex_index + 2]);
vertex = true;
-
- vertexData.push_back(attrib.colors[3 * index.vertex_index + 0]);
- vertexData.push_back(attrib.colors[3 * index.vertex_index + 1]);
- vertexData.push_back(attrib.colors[3 * index.vertex_index + 2]);
- color = true;
}
if(index.normal_index >= 0) {
@@ -152,8 +147,6 @@ void Model::Builder::loadModel(const std::string &filepath) {
if(vertex)
vertexSize += 12;
- if(color)
- vertexSize += 12;
if(normal)
vertexSize += 12;
if(uvs)