summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-08-18 16:17:38 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-08-18 16:17:38 +0100
commit9090d3992423d667d04640949cd00a9b26dc1c3b (patch)
treeae0c356c9a9326218adaf51915d9be2905e5ebe7
parentOffset shaded position to reduce chance of self-shadowing (diff)
downloadilt-9090d3992423d667d04640949cd00a9b26dc1c3b.tar.bz2
ilt-9090d3992423d667d04640949cd00a9b26dc1c3b.tar.xz
ilt-9090d3992423d667d04640949cd00a9b26dc1c3b.zip
Don't set face material on each vertex index pass
-rw-r--r--assetFactory/assimp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/assetFactory/assimp.cpp b/assetFactory/assimp.cpp
index 1e11eda..e33783a 100644
--- a/assetFactory/assimp.cpp
+++ b/assetFactory/assimp.cpp
@@ -84,8 +84,8 @@ public:
for (auto idx = f.mIndices; const auto fheh : mesh.fh_range(fh)) {
const auto ouv = !amesh->mTextureCoords[0][*idx++];
mesh.set_texcoord2D(fheh, ouv);
- mesh.property(mesh.materialFaceProperty, fh) = material;
}
+ mesh.property(mesh.materialFaceProperty, fh) = material;
}
}
}