Anti Aliasing

Anti-Aliasing (AA) is an image processing technique that aims to reduce the "aliasing" edges in images and make them smoother and more natural.

left image
OFF
right image
FXAA + MSAA

FXAA (Fast Approximate Anti-Aliasing)

Fast Approximate Anti-Aliasing (FXAA) is screen-space anti-aliasing mode applied after the camera renders the final image,it can smooth all pixels, including by shader-generated specular, alpha-cutoff edge.

left image
FXAA OFF
right image
FXAA ON

Galacean turns off 'FXAA' by default, which you can configure via 'antiAliasing' under the Camera or call antiAliasing interface.

MSAA (Multiple Sampling Anti-Aliasing)

Multiple Sampling Anti-Aliasing (MSAA) is a hardware-level anti-aliasing technology, mainly addressing the jagged edges of geometric shapes. Since jagged edges caused by materials, textures, and transparency and other non-geometric objects are not affected by MSAA, this means that you can use MSAA and FXAA together.

Materials, textures, and transparent surfaces are not affected by MSAA, which means you can use MSAA with FXAA.

left image
MSAA OFF
right image
MSAA 4x
It can be seen that in this scenario, the leaves with transparent clipping (alphaCutoff) are not affected by MSAA, and the opaque bones are affected by MSAA.

In Galacean, the default 'msaaSamples' under the camera is' 4x'. You can modify the 'msaaSamples' to customize the 'MSAA' quality. Or directly call msaaSamples interface Settings.

How to use it in the editor?

To see the anti-aliasing effect, preview through the camera window:

image image

Was this page helpful?