简体   繁体   English

使用FXAA时的文字清晰度

[英]Text sharpness while using FXAA

I have a FXAA shader it works great for the most part except for text. 我有一个FXAA着色器,除文本外,它在大多数情况下都很好用。 Our text is 2D and fairly thin, which is unfortunate. 我们的文本是2D且很薄,这很不幸。 Are there any techniques to make text sharper while using FXAA. 使用FXAA时是否有任何使文字更清晰的技术。 Is there an alternative anti-aliasing implementation already out there that accounts for text? 是否已经有替代的消除锯齿的实现方式可以解决文本问题?

The answer is use SDF (signed distance fields), which looks great. 答案是使用SDF(带符号距离字段),看起来不错。

Here is an example: http://hack.chrons.me/opengl-text-rendering/ 这是一个示例: http : //hack.chrons.me/opengl-text-rendering/

The technique was introduced by valve a couple years ago. 该技术是几年前由Valve引入的。 Mapbox uses it seems as well. Mapbox也使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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