Texture Mapping on a Triangle

Started by
0 comments, last by Marvin 22 years, 9 months ago
this might seem kinda silly but how do i map a square texture onto a Triangle, a texture having 4 corners and the triangle only 3 :o/ cheers
Advertisement
  glBegin(GL_TRIANGLES);    glTexCoord2f(0.0f,0.0f);  glVertex3f(-1.0f,0.0f,0.0f);    glTexCoord2f(1.0f,0.0f);  glVertex3f(1.0f,0.0f,0.0f);    glTexCoord2f(0.5f,1.0f);  glVertex3f(0.0f,1.0f,0.0f);glEnd();  

somethin'' like that.

HHSDrum@yahoo.com
Polarisoft Home Page
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911

This topic is closed to new replies.

Advertisement