T2.1 Draw two triangles using vertex indices

Github code

Now we are drawing two triangles.

One way is to use the method in Lab 01 to draw two triangles. However, it is not very efficient as you have to duplicate vertices.

This week we are going to learn use vertex with indices to draw multiple triangles.

Last updated