Computergrafik
Texturkoordinaten
← 2D Texturraum | ● | 2D Texturdaten →
Quad mit Zuordnung auf gesamte Textur:
glBegin(GL_QUADS);
glTexCoord2f(0,0);
glVertex3d(x_0,y_0,z_0);
glTexCoord2f(1,0);
glVertex3d(x_1,y_1,z_1);
glTexCoord2f(0,1);
glVertex3d(x_2,y_2,z_2);
glTexCoord2f(1,1);
glVertex3d(x_3,y_3,z_3);
glEnd();
glTexCoord2f(0,0);
glVertex3d(x_0,y_0,z_0);
glTexCoord2f(1,0);
glVertex3d(x_1,y_1,z_1);
glTexCoord2f(0,1);
glVertex3d(x_2,y_2,z_2);
glTexCoord2f(1,1);
glVertex3d(x_3,y_3,z_3);
glEnd();
← 2D Texturraum | ● | 2D Texturdaten →