What's causing the dark borders around letters using OpenGL?

余生长醉 提交于 2019-12-11 05:06:30

问题


Following on from this question.

When I draw the letters I'm getting a dark border around some areas. Below is an example zoomed 4x. The letter on the left is drawn with OpenGL. The letter on the right is my bitmap font atlas in Photoshop colour adjusted to match what is being drawn by my game. As you can see, the 's' on the left has noticeable dark borders in some areas.

I've played with various blending options but can't work out what's causing it. If someone could tell me what the cause is and how to fix it that's be appreciated.

来源:https://stackoverflow.com/questions/24972751/whats-causing-the-dark-borders-around-letters-using-opengl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!