diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-25 23:08:03 -0400 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-25 23:08:03 -0400 |
commit | ee3a4d6073421fd9e17e832dc9d10e151e6029ea (patch) | |
tree | b0228ffe9af69f53e7cff238a1ead44244cf4dea /engine/xe_model.cpp | |
parent | 3D Chunks rendering (diff) | |
download | minecraftvulkan-ee3a4d6073421fd9e17e832dc9d10e151e6029ea.tar.gz minecraftvulkan-ee3a4d6073421fd9e17e832dc9d10e151e6029ea.tar.bz2 minecraftvulkan-ee3a4d6073421fd9e17e832dc9d10e151e6029ea.zip |
remove color vertex data, mipmapping
Diffstat (limited to 'engine/xe_model.cpp')
-rw-r--r-- | engine/xe_model.cpp | 9 |
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) |