Some changes

This commit is contained in:
Dynamitos
2025-04-10 16:42:37 +02:00
parent 40debf8580
commit d14c1217de
10 changed files with 44 additions and 27 deletions
+1 -2
View File
@@ -157,8 +157,7 @@ void BasePass::render() {
vertexData->getInstanceDataSet()->updateBuffer(VertexData::CULLINGDATA_NAME, 0, cullingBuffer);
vertexData->getInstanceDataSet()->writeChanges();
permutation.setVertexData(vertexData->getTypeName());
const auto& materials = vertexData->getMaterialData();
for (const auto& materialData : materials) {
for (const auto& materialData : vertexData->getMaterialData()) {
// material not used for any active meshes, skip
if (materialData.instances.size() == 0)
continue;