使用OpenGL ES的iPhone中的抗锯齿问题

时间:2017-06-30 14:16:47

标签: ios objective-c opengl-es antialiasing multisampling

我正在尝试使用iPhone上的OpenGL ES绘制曲线/线条。我使用glRenderbufferStorageMultisampleAPPLE(GL_RENDERBUFFER_OES,4,GL_DEPTH_COMPONENT16_OES,backingWidth,backingHeight)和glResolveMultisampleFramebufferAPPLE()引用链接:

apple文档链接 https://developer.apple.com/library/ios/documentation/3ddrawing/conceptual/opengles_programmingguide/WorkingwithEAGLContexts/WorkingwithEAGLContexts.html

输出如下:

https://i.stack.imgur.com/gpPIK.png

边缘仍然看起来像素化。感谢任何帮助。

感谢。

1 个答案:

答案 0 :(得分:0)

我不确定你的期望是什么 - 抗alisaing可以模糊原始边缘,但它不能使像素完全消失。

它看起来像我期待的那样......