Batched clamp: an unfilled mesh record is all zeros, as the clamp of one leaves it

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 05:38:11 -06:00
1 parent 708c13484c
commit b7838005c0
1 file changed
+2
+2
View File
@@ -96,6 +96,8 @@ void main(uint3 id : SV_DispatchThreadID, uint gi : SV_GroupIndex) {
} else {
if (record[0] > 65535u) {
record[0] = 0;
record[1] = 0;
record[2] = 0;
}
asked = record[0];
record[1] = min(record[1], 1u);