Skip to content

Commit 4988699

Browse files
authored
Updated Anti-Aliasing.md documentation
Removed general introduction and linked to Unity manual. Edited the doc for styling and grammar.
1 parent fa48bac commit 4988699

File tree

1 file changed

+25
-30
lines changed

1 file changed

+25
-30
lines changed

Documentation~/Anti-aliasing.md

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
# Anti-aliasing
22

3-
The **Anti-aliasing** effect offers a set of algorithms designed to prevent aliasing and give a smoother appearance to graphics. Aliasing is an effect where lines appear jagged or have a “staircase” appearance (as displayed in the left-hand image below). This can happen if the graphics output device does not have a high enough resolution to display a straight line.
3+
The **Anti-aliasing** effect gives graphics a smoother appearance. The Anti-aliasing algorithms are image-based, which is useful when support for traditional multisampling is not available, such as the [deferred rendering](https://docs.unity3d.com/Manual/RenderTech-DeferredShading.html) shading path, or **HDR** in the **forward rendering path** in Unity 5.5 or earlier. The Editor’s [Quality settings](https://docs.unity3d.com/Manual/class-QualitySettings.html) window is home to these options.
44

5-
**Anti-aliasing** reduces the prominence of these jagged lines by surrounding them with intermediate shades of color. Although this reduces the jagged appearance of the lines, it also makes them blurrier.
5+
For further information on the **Anti-aliasing** effect, see the [Anti-aliasing](https://docs.unity3d.com/Manual/PostProcessing-Antialiasing.html) documentation in the Unity manual.
66

7+
The algorithms available in the post-processing stack are:
78

8-
![](images/screenshot-antialiasing.png)
9+
- **Fast Approximate Anti-aliasing (FXAA)**; a fast algorithm for mobile and platforms that don’t support motion vectors.
10+
- **Subpixel Morphological Anti-aliasing (SMAA)**; a high-quality but slower algorithm for mobile and platforms that don’t support motion vectors.
11+
- **Temporal Anti-aliasing (TAA)**; an advanced technique which requires motion vectors. Ideal for desktop and console platforms.
912

13+
They are set per-camera in the **Post-process Layer** component.
1014

11-
The Anti-aliasing algorithms are image-based. This is very useful when traditional multisampling (as used in the Editor’s [Quality settings](https://docs.unity3d.com/Manual/class-QualitySettings.html)) is not properly supported or when working with specular-heavy PBR materials.
15+
## Fast Approximate Anti-aliasing (FXAA)
1216

13-
The algorithms supplied in the post-processing stack are:
14-
15-
- Fast Approximate Anti-aliasing (FXAA)
16-
- Subpixel Morphological Anti-aliasing (SMAA)
17-
- Temporal Anti-aliasing (TAA)
18-
19-
They are set per-camera on the **Post-process Layer** component.
20-
21-
## Fast Approximate Anti-aliasing
22-
23-
**FXAA** is the cheapest technique and is recommended for mobile and other platforms that don’t support motion vectors, which are required for **TAA**.
17+
**FXAA** is the most efficent technique and is recommended for mobile and other platforms that don’t support motion vectors, which are required for **Temporal Anti-aliasing**.
2418

2519

2620
![](images/aa-1.png)
@@ -30,22 +24,22 @@ They are set per-camera on the **Post-process Layer** component.
3024

3125
| Property | Function |
3226
| :--------- | :----------------------------------------------------------- |
33-
| Fast Mode | A slightly lower quality but faster variant of FXAA. Highly recommended on mobile platforms. |
34-
| Keep Alpha | Toggle this on if you need to keep the alpha channel untouched by post-processing. Else it will use this channel to store internal data used to speed up and improve visual quality. |
27+
| Fast Mode | Enable this checkbox for a lower quality but faster variant of FXAA. Recommended for mobile platforms. |
28+
| Keep Alpha | Enable this checkbox if you need to keep the alpha channel untouched by post-processing. If disabled, Unity will use the alpha channel to store internal data used to speed up and improve visual quality. |
3529

36-
### Performances
30+
### Performance
3731

38-
`Fast Mode` should be enabled on mobile & Nintendo Switch as it gives a substantial performance boost compared to the regular mode on these platforms. PS4 and Xbox One slightly benefit from it as well but on desktop GPUs it makes no difference and the regular mode should be used for added visual quality.
32+
Enable `Fast Mode` if you are developing for mobile or Nintendo Switch to get a performance boost. It will also provide a small boost for PlayStation 4 and Xbox One development. `Fast Mode` does not provide any extra benefits for desktop GPUs; regular mode should be used for added visual quality.
3933

4034
### Requirements
4135

4236
- Shader Model 3
4337

4438
See the [Graphics Hardware Capabilities and Emulation](https://docs.unity3d.com/Manual/GraphicsEmulation.html) page for further details and a list of compliant hardware.
4539

46-
## Subpixel Morphological Anti-aliasing
40+
## Subpixel Morphological Anti-aliasing (SMAA)
4741

48-
**SMAA** is a higher quality anti-aliasing effect than **FXAA** but it's also slower. Depending on the art-style of your game it can work as well as **TAA** while avoiding some of the shortcomings of this technique.
42+
**SMAA** is a higher quality anti-aliasing effect than **FXAA** but it's also slower. Depending on the art-style of your game it can work as well as **Temporal Anti-aliasing** while avoiding some of the shortcomings of this technique.
4943

5044

5145
![](images/aa-2.png)
@@ -55,11 +49,11 @@ See the [Graphics Hardware Capabilities and Emulation](https://docs.unity3d.com/
5549

5650
| Property | Function |
5751
| :-------- | :------------------------------------------------ |
58-
| Quality | The overall quality of the anti-aliasing filter. |
52+
| Quality | Set the overall quality of the anti-aliasing filter. |
5953

60-
### Performances
54+
### Performance
6155

62-
Lowering the `Quality` setting will make the effect run faster. Using **SMAA** on mobile platforms isn't recommended.
56+
Lowering the `Quality` setting makes the effect run faster. Do not use **SMAA** on mobile platforms.
6357

6458
### Known issues and limitations
6559

@@ -73,7 +67,7 @@ See the [Graphics Hardware Capabilities and Emulation](https://docs.unity3d.com/
7367

7468
## Temporal Anti-aliasing
7569

76-
**TAA** is a more advanced anti-aliasing technique where frames are accumulated over time in a history buffer to be used to smooth edges more effectively. It is substantially better at smoothing edges in motion but requires motion vectors and is more expensive than **FXAA**. Due to this it is recommended for desktop and console platforms.
70+
**TAA** is an advanced anti-aliasing technique where frames are accumulated over time in a history buffer to be used to smooth edges more effectively. It is substantially better at smoothing edges in motion but requires motion vectors and is more expensive than **FXAA**. It is ideal for desktop and console platforms.
7771

7872

7973
![](images/aa-3.png)
@@ -83,10 +77,11 @@ See the [Graphics Hardware Capabilities and Emulation](https://docs.unity3d.com/
8377

8478
| Property | Function |
8579
| :------------------- | :------------------------------------------------------------ |
86-
| Jitter Spread | The diameter (in texels) inside which jitter samples are spread. Smaller values result in crisper but more aliased output, whilst larger values result in more stable but blurrier output. |
87-
| Stationary Blending | The blend coefficient for stationary fragments. Controls the percentage of history sample blended into final color for fragments with minimal active motion. |
88-
| Motion Blending | The blending coefficient for moving fragments. Controls the percentage of history sample blended into the final color for fragments with significant active motion. |
89-
| Sharpness | TAA can induce a slight loss of details in high frequency regions. Sharpening alleviates this issue. |
80+
| Jitter Spread | Set the diameter (in texels) in which jitter samples are spread. Smaller values result in crisper but a more aliased output. Larger values result in more stable but blurrier output. |
81+
| Stationary Blending | Set the blend coefficient for stationary fragments. This setting
82+
controls the percentage of history sample blended into final color for fragments with minimal active motion. |
83+
| Motion Blending | Set the blending coefficient for moving fragments. This setting controls the percentage of history sample blended into the final color for fragments with significant active motion. |
84+
| Sharpness | Set the sharpneess to alleviate the slight loss of details in high frequency regions which can be caused by TAA. |
9085

9186
### Known issues and limitations
9287

@@ -98,4 +93,4 @@ See the [Graphics Hardware Capabilities and Emulation](https://docs.unity3d.com/
9893
- Depth texture
9994
- Shader Model 3
10095

101-
See the [Graphics Hardware Capabilities and Emulation](https://docs.unity3d.com/Manual/GraphicsEmulation.html) page for further details and a list of compliant hardware.
96+
See the [Graphics Hardware Capabilities and Emulation](https://docs.unity3d.com/Manual/GraphicsEmulation.html) page for further details and a list of compliant hardware.

0 commit comments

Comments
 (0)