Adding view culling to non-depth culling variant

This commit is contained in:
Dynamitos committed 2024-06-25 11:21:56 +02:00
1 parent c352555b0b
commit 00bb6b3a96
10 files changed
+144 -175

No files matched your search

-3
View File
@@ -26,10 +26,7 @@ void taskMain(
uint cull = p.cullingOffset + i;
MeshletDescription meshlet = pScene.meshletInfos[m];
MeshletCullingInfo culling = pScene.cullingInfos[cull];
#ifdef DEPTH_CULLING
// if depth culling is disabled, we draw the whole scene as if cached
if(culling.wasVisible())
#endif
{
uint index;
InterlockedAdd(head, 1, index);