Textured triangles ?
Hi,
I''d like to know if it is possible to texture triangles with opengl : I know that the basics are textured quads, but how could I set up texures for triangles ?
or how could I build "triangles" textures from a square, basic, texture ?
thx
Building textures for triangles works exactly as building for a quad. Imagine building a square built of 2 triangles. It has four vertices right? One for each corner. In the upper left corner you give the texcoords 0,0 and in the lower right 1,1.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement