Draw List works now

This commit is contained in:
Dynamitos
2024-06-07 18:43:10 +02:00
parent bc0d05dbb0
commit 2644b127fa
5 changed files with 38 additions and 33 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ void meshMain(
uint local_idx1 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 1];
uint local_idx2 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 2];
indices[p] = uint3(local_idx0, local_idx1, local_idx2);
prim[p].cull = false;//!cull.triangleCulled(p);
prim[p].cull = !cull.triangleCulled(p);
#ifdef VISIBILITY
prim[p].prim = encodePrimitive(p, meshletId);
#endif