Texture Mapping on a Triangle
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement