用GLSL画线 [英] Drawing lines with GLSL
本文介绍了用GLSL画线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用GL_TRIANGLES与GLSL画一条线?
is it possible to draw a line with GLSL using GL_TRIANGLES?
我问的原因是我正在尝试用adobes molehill画一条线,并且它只能画三角形.
The reason why i ask is i'm trying to draw a line with adobes molehill and it only draws triangle.
欢呼声
推荐答案
如果将边缘渲染设置为启用,只需在相同位置绘制一个点1和点3的三角形即可. 效率不高,但是行得通.
if you set edge rendering to be on, just draw a triangle with point 1 and 3 at the same position. It's not efficient, but it works.
这篇关于用GLSL画线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文