Maybe fix TAA (#1047)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2025-10-12 17:40:41 -07:00
1 parent 86edb721da
commit 34b6efde7b
6 files changed
+49 -20

No files matched your search

@@ -13,6 +13,13 @@ public class BufferFlipper {
}
public void flip(int target) {
// colortex6 carries material/mask data that the gbuffer populates every frame.
// If we allow it to flip, the alternate texture remains empty and later copy-back
// wipes the fresh mask, breaking TAA mask lookups (notably on foliage/transparents).
if (target == 6) {
return;
}
if (!flippedBuffers.remove(target)) {
// If the target wasn't in the set, add it to the set.
flippedBuffers.add(target);