TAA (Temporal AA)
TAA (Temporal Antialiasing) is a time-based technique that blends previous frames with the current frame to eliminate jagged edges. It offers the highest quality among current antialiasing techniques, producing smooth, cinematic images.
1. How it Works
It accumulates and averages multiple frames rendered while slightly jittering the camera. This allows it to obtain resolution information more precise than a single pixel.
- Pros: Provides near-perfect antialiasing quality in static scenes.
- Cons: Ghosting artifacts may occur on fast-moving objects.
2. Usage
Enabled via antialiasingManager.useTAA. Enabling this automatically disables MSAA or FXAA.
javascript
// Enable TAA (Other AAs are disabled)
redGPUContext.antialiasingManager.useTAA = true;3. Live Example: TAA Quality Check
Check how TAA handles edges, textures, and fine patterns in the same scene. (Notice how it perfectly resolves the shimmering in the grid pattern.)
Key Summary
- Best Quality: Almost completely eliminates jagged edges.
- Auto Selection: Automatically enabled on high-DPI displays (like Retina).
- High Cost: Recommended for desktop environments due to per-frame computation and memory overhead.