GL_TRIANGLE FAN Explanation

后端 未结 2 706
有刺的猬
有刺的猬 2020-12-15 23:39

I am trying to \"fill\" a surface of a sphere that I drew using this algorithm here: http://paulbourke.net/miscellaneous/sphere_cylinder/, the first method. I know that

相关标签:
2条回答
  • 2020-12-16 00:15

    How does GL_TRIANGLE_FAN works exactly?

    The first vertex of a triangle fan acts like a hub. The vertices following connect with the previous non-starting vertex and the hub.

    enter image description here

    0 讨论(0)
  • 2020-12-16 00:15

    You probably need a triangle strip instead of a fan.

    See also this question: gl_triangle_strip vs gl_triangle_fan

    0 讨论(0)
提交回复
热议问题