OpenGL ES - Dashed Lines

前端 未结 3 1719
一整个雨季
一整个雨季 2020-12-11 18:33

I\'m Using OpenGlEs10 for My Android Game Development, I Want to Draw Dashed-lines Now Im Using This Code to Draw My Line:

         


        
3条回答
  •  星月不相逢
    2020-12-11 18:49

    I recommend to use a 1D texture (performance: use alpha testing instead of blending)

    don't forget to:

    • set texture filter to GL_NEAREST
    • texture wrapping to GL_REPEAT

提交回复
热议问题