简体   繁体   中英

GL_LINES and FXAA in WebGL

So I have this problem with FXAA. The lines I draw using GL_LINES look, well, not really anti-aliased after applying FXAA as a post-process filter, they just look blurred. So my Question basically is - is this the espected bahaviour of FXAA with GL_LINES? The shader code I'm using is nothing special ( See here )

This is how the FXAA output looks:

FXAA

And here is the (standard 4x) MSAA:

在此输入图像描述

No matter the fact that it has "antialiasing" in its name, FXAA is not really antialiasing. "Real" antialiasing techniques involve taking multiple samples of the signal; FXAA, as a post-processing technique cannot do that.

At the end of the day, it is nothing more than a smart blur filter. So while there may be variations of it that can handle lines better, it's still just a blur filter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM