Skip to content

Commit 12f3191

Browse files
committed
Document sub-pixel morphological antialiasing (SMAA) (#102330)
1 parent 4f4b681 commit 12f3191

File tree

2 files changed

+48
-23
lines changed

2 files changed

+48
-23
lines changed

tutorials/3d/3d_antialiasing.rst

Lines changed: 48 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,31 @@ Comparison between no antialiasing (left) and FXAA (right):
181181

182182
.. image:: img/antialiasing_fxaa.webp
183183

184+
Sub-pixel Morphological Antialiasing (SMAA 1x)
185+
----------------------------------------------
186+
187+
*This is only available in the Forward+ and Mobile renderers, not the Compatibility
188+
renderer.*
189+
190+
Sub-pixel Morphological Antialiasing is a post-processing antialiasing solution.
191+
It runs slightly slower than FXAA, but produces less blurriness. This is very helpful
192+
when the screen resolution is 1080p or below. Just like FXAA, SMAA 1x lacks temporal
193+
information and will therefore not do much against specular aliasing.
194+
195+
Use SMAA 1x if you can't afford MSAA, but find FXAA too blurry.
196+
197+
Combine it with TAA, or even FSR2, to maximize antialiasing at a higher GPU cost
198+
and some added blurriness. This is most beneficial in fast-moving scenes or just
199+
after a camera cut, especially at lower FPS.
200+
201+
SMAA 1x can be enabled in the Project Settings by changing the value of the
202+
:ref:`Rendering > Anti Aliasing > Quality > Screen Space AA<class_ProjectSettings_property_rendering/anti_aliasing/quality/screen_space_aa>`
203+
setting to ``SMAA``.
204+
205+
Comparison between no antialiasing (left) and SMAA 1x (right):
206+
207+
.. image:: img/antialiasing_smaa.webp
208+
184209
Supersample antialiasing (SSAA)
185210
-------------------------------
186211

@@ -295,29 +320,29 @@ Antialiasing comparison
295320
.. The table looks malformed but is not. When making changes, check the nearby
296321
.. lines for guidance.
297322
298-
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
299-
| Feature | MSAA | TAA | FSR2 | FXAA | SSAA | SSRL |
300-
+==========================+==========================+==========================+==========================+==========================+==========================+==========================+
301-
| Edge antialiasing | 🟢 Yes | 🟢 Yes | 🟢 Yes | 🟢 Yes | 🟢 Yes | 🔴 No |
302-
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
303-
| Specular antialiasing | 🟡 Some | 🟢 Yes | 🟢 Yes | 🟡 Some | 🟢 Yes | 🟢 Yes |
304-
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
305-
| Transparency antialiasing| 🟡 Some [1]_ | 🟢 Yes [2]_ | 🟢 Yes [2]_ | 🟢 Yes | 🟢 Yes | 🔴 No |
306-
| | | | | | | |
307-
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
308-
| Added blur | 🟢 None | 🟡 Some | 🟡 Some | 🟡 Some | 🟡 Some [3]_ | 🟢 None |
309-
| | | | | | | |
310-
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
311-
| Ghosting artifacts | 🟢 None | 🔴 Yes | 🔴 Yes | 🟢 None | 🟢 None | 🟢 None |
312-
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
313-
| Performance cost | 🟡 Medium | 🟡 Medium | 🔴 High | 🟢 Low | 🔴 Very High | 🟢 Low |
314-
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
315-
| Forward+ | ✔️ Yes | ✔️ Yes | ✔️ Yes | ✔️ Yes | ✔️ Yes | ✔️ Yes |
316-
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
317-
| Mobile | ✔️ Yes | ❌ No | ❌ No | ✔️ Yes | ✔️ Yes | ✔️ Yes |
318-
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
319-
| Compatibility | ✔️ Yes | ❌ No | ❌ No | ❌ No | ✔️ Yes | ❌ No |
320-
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
323+
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
324+
| Feature | MSAA | TAA | FSR2 | FXAA | SMAA 1x | SSAA | SSRL |
325+
+==========================+==========================+==========================+==========================+==========================+==========================+==========================+==========================+
326+
| Edge antialiasing | 🟢 Yes | 🟢 Yes | 🟢 Yes | 🟢 Yes | 🟢 Yes | 🟢 Yes | 🔴 No |
327+
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
328+
| Specular antialiasing | 🟡 Some | 🟢 Yes | 🟢 Yes | 🟡 Some | 🟡 Some | 🟢 Yes | 🟢 Yes |
329+
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
330+
| Transparency antialiasing| 🟡 Some [1]_ | 🟢 Yes [2]_ | 🟢 Yes [2]_ | 🟢 Yes | 🟢 Yes | 🟢 Yes | 🔴 No |
331+
| | | | | | | | |
332+
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
333+
| Added blur | 🟢 None | 🟡 Some | 🟡 Some | 🟡 Some | 🟢 Low | 🟡 Some [3]_ | 🟢 None |
334+
| | | | | | | | |
335+
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
336+
| Ghosting artifacts | 🟢 None | 🔴 Yes | 🔴 Yes | 🟢 None | 🟢 None | 🟢 None | 🟢 None |
337+
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
338+
| Performance cost | 🟡 Medium | 🟡 Medium | 🔴 High | 🟢 Very Low | 🟢 Low | 🔴 Very High | 🟢 Low |
339+
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
340+
| Forward+ | ✔️ Yes | ✔️ Yes | ✔️ Yes | ✔️ Yes | ✔️ Yes | ✔️ Yes | ✔️ Yes |
341+
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
342+
| Mobile | ✔️ Yes | ❌ No | ❌ No | ✔️ Yes | ✔️ Yes | ✔️ Yes | ✔️ Yes |
343+
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
344+
| Compatibility | ✔️ Yes | ❌ No | ❌ No | ❌ No | ❌ No | ✔️ Yes | ❌ No |
345+
+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
321346

322347

323348
.. [1] MSAA does not work well with materials with Alpha Scissor (1-bit transparency).
330 KB
Binary file not shown.

0 commit comments

Comments
 (0)