Antialiasing (PostEffect)
Manual     Reference     Scripting   
Reference Manual > Components > Image Effect Scripts > Antialiasing (PostEffect)

Antialiasing (PostEffect)

The Antialiasing (PostEffect) offers a set of algorithms designed to give a smoother appearance to graphics. When two areas of different colour adjoin in an image, the shape of the pixels can form a very distinctive "staircase" along the boundary. This effect is known as aliasing and hence antialiasing refers to any measure which reduces the effect.

The cube on the left is rendered without antialiasing while the one on the right shows the effect of the FXAA1PresetB algorithm

The antialiasing algorithms are image based, which is very useful for deferred rendering where traditional multisampling is not properly supported. The algorithms currently supported are NVIDIA's FXAA, FXAA II, FXAA III (tweakable and console optimized), simpler edge blurs (NFAA, SSAA) that blur only local edges and an adaption of the DLAA algorithm that also addresses long edges. SSAA is the fastest technique, followed by NFAA, FXAAII, FXAA II, DLAA and the the other FXAA's. Typically, the quality of antialiasing trades off against the speed of the algorithm but there may be situations where the choice of algorithm makes little difference.

For those especially interested in console and NaCl deployment, the optimized FXAA III implementation offers the best tradeoff between quality and performance and can furthermore be tweaked towards sharper or blurrier looks.

As with the other image effects, this effect is only available in Unity Pro and you must have the Pro Standard Assets installed before it becomes available.

Properties

AA TechniqueThe algorithm to be used.

Hardware support

This effect requires a graphics card with pixel shaders (3.0) or OpenGL ES 2.0. PC: NVIDIA cards since 2004 (GeForce 6), AMD cards since 2005 (Radeon X1300), Intel cards since 2006 (GMA X3000); Mobile: OpenGL ES 2.0; Consoles: Xbox 360, PS3.

All image effects automatically disable themselves when they can not run on end-users graphics card.

Page last updated: 2012-01-06