Fixed stupid mesh shading bug

This commit is contained in:
Dynamitos
2024-04-26 20:24:43 +02:00
parent ab2bdfbd0e
commit 19922f4624
3 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ void taskMain(
uint index;
InterlockedAdd(head, 1, index);
p.meshletId[index] = m;
p.instanceId[index] = groupID + pScene.primitiveIndices[m];
p.instanceId[index] = groupID;
}
}
}
@@ -97,7 +97,7 @@ void meshMain(
uint vertexIndex = pScene.vertexIndices[m.vertexOffset + v];
VertexAttributes attr = pVertexData.getAttributes(md.indicesOffset + vertexIndex);
vertices[v] = attr.getParameter(inst.transformMatrix);
vertices[v].vertexColor = m.color;
//vertices[v].vertexColor = m.color;
}
}
}