Reputation: 1132
Suppose I have a polygon ( a lengthy rectangle ) made up of several triangles using GL_TRIANGLE_STRIP
.
Now imagine I have a square texture that should be mapped against each of the small square that make up the rectangle. How do I accomplish this?
Upvotes: 2
Views: 786
Reputation: 5238
You need to repeat your texture along the geometry. For this, you need to setup your texture's GL_TEXTURE_WRAP_S
to GL_REPEAT
.
Then you can assign texture coordinates for your vertices :
Upvotes: 4