Hacked in translucency rendering without sorting

This commit is contained in:
mcrcortex
2024-01-29 15:39:48 +10:00
parent 4d28a5a8c9
commit c2c622226b
4 changed files with 55 additions and 20 deletions

View File

@@ -87,7 +87,10 @@ void main() {
uint count = 0;
//Translucency
count = meta.cntA&0xFFFF;
if (count != 0) {
uint translucentCommandPtr = atomicAdd(translucentDrawCount, 1) + 400000;//FIXME: dont hardcode this offset
writeCmd(translucentCommandPtr, encodedPos, ptr, count);
}
ptr += count;
//Double sided quads