简体   繁体   中英

Connecting each column with each other with GL_TRIANGLE_STRIP

I've created these triangles using triangle strip. I was wondering if there's a better way to connect the triangles to each other (first picture). For now I just created the triangles based on the previous columns verticies (second picture). So is there a better way so I dont have to calculate all the previous vertices?

在此处输入图片说明

在此处输入图片说明

AFAIK the only way to avoid recalculating/storing some previous vertices is to use an index buffer

https://www.learnopengles.com/tag/triangle-strips/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM