-
-
Notifications
You must be signed in to change notification settings - Fork 213
Antialiasing
The default WebGL antialiasing solution has no effect in post processing pipelines because it only applies to the canvas. It's recommended to set the antialias
flag to false
when creating a WebGLRenderer
for a post processing setup.
If WebGL 2 is available, MSAA may be enabled via the multisampling
constructor option of the EffectComposer
. Although MSAA provides high quality antialiasing at low computational cost, it may produce visual artifacts when used with depth-based effects such as SSAO. The following images show SSAO with and without MSAA enabled:
With MSAA | Without MSAA |
---|---|
The SMAA technique implements efficient antialiasing for post processing pipelines. The postprocessing
library provides the SMAAEffect as a default antialiasing solution.
The technique focuses on handling each pattern in a very specific way (via look-up-tables), in order to minimize false positives in the pattern detection. Ultimately, this prevents antialiasing features that are not produced by jaggies, like texture details. — iryoku