Textured triangles ?

Started by
1 comment, last by Frealek 21 years, 11 months ago
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
Advertisement
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.
ok ! :o)

then I need some source to look at...
I gonna search around gamedev.net

thx

This topic is closed to new replies.

Advertisement