开发者

OpenGL Multisampling Lines

开发者 https://www.devze.com 2023-01-11 22:02 出处:网络
Is there a way t开发者_JAVA技巧o just use multisampling on just lines drawn with OpenGL and not with the entire program?Thanks in advance!Try to enable anti-aliased lines with glEnable(GL_LINE_SMOOTH)

Is there a way t开发者_JAVA技巧o just use multisampling on just lines drawn with OpenGL and not with the entire program? Thanks in advance!


Try to enable anti-aliased lines with glEnable(GL_LINE_SMOOTH), plus you can also add a glHint(GL_LINE_SMOOTH_HINT, GL_NICEST). These might get you what you want even it's not true multisampled drawing.


No, unless you can draw all lines into another buffer and then combine this buffer with your main drawing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号