Lots of fixes

This commit is contained in:
mcrcortex
2024-01-29 11:18:16 +10:00
parent c4efd29206
commit 6302d3db1e
9 changed files with 308 additions and 35 deletions

View File

@@ -61,14 +61,6 @@ void main() {
cmd.firstIndex = 0;
cmd.baseVertex = int(extractQuadStart(meta))<<2;
cmd.baseInstance = encodeLocalLodPos(detail, ipos);
cmdBuffer[gl_GlobalInvocationID.x] = cmd;
} else {
DrawCommand cmd;
cmd.count = 0;
cmd.instanceCount = 0;
cmd.firstIndex = 0;
cmd.baseVertex = 0;
cmd.baseInstance = 0;
cmdBuffer[gl_GlobalInvocationID.x] = cmd;
cmdBuffer[atomicAdd(opaqueDrawCount, 1)] = cmd;
}
}