mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-19 03:49:22 +00:00
Maybe fix TAA (#1047)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user