diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-18 16:17:38 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-18 16:17:38 +0100 |
commit | 9090d3992423d667d04640949cd00a9b26dc1c3b (patch) | |
tree | ae0c356c9a9326218adaf51915d9be2905e5ebe7 /assetFactory | |
parent | Offset shaded position to reduce chance of self-shadowing (diff) | |
download | ilt-9090d3992423d667d04640949cd00a9b26dc1c3b.tar.bz2 ilt-9090d3992423d667d04640949cd00a9b26dc1c3b.tar.xz ilt-9090d3992423d667d04640949cd00a9b26dc1c3b.zip |
Don't set face material on each vertex index pass
Diffstat (limited to 'assetFactory')
-rw-r--r-- | assetFactory/assimp.cpp | 2 |
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; } } } |