From ee3a4d6073421fd9e17e832dc9d10e151e6029ea Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Sun, 25 Sep 2022 23:08:03 -0400 Subject: remove color vertex data, mipmapping --- engine/xe_model.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'engine/xe_model.cpp') 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) -- cgit v1.2.3-freya