主题:[讨论]纹理映射
glTexCoord2f()
这个函数操作起来我不太明白
哪位高手能讲清楚吗?
还有就是
glTexCoord2f(0.0f 0.0f); glVertex3f(-1.0f, -1.0f, 1.0f);
glTexCoord2f(1.0f,0.0f); glVertex3f( 1.0f, -1.0f, 1.0f);
glTexCoord2f(1.0f+1.0, 1.0f+1.0); glVertex3f( 1.0f, 1.0f, 1.0f);
glTexCoord2f(0.0f, 1.0f); glVertex3f(-1.0f, 1.0f, 1.0f);
这样的话 他又是怎么样映射的??
这个函数操作起来我不太明白
哪位高手能讲清楚吗?
还有就是
glTexCoord2f(0.0f 0.0f); glVertex3f(-1.0f, -1.0f, 1.0f);
glTexCoord2f(1.0f,0.0f); glVertex3f( 1.0f, -1.0f, 1.0f);
glTexCoord2f(1.0f+1.0, 1.0f+1.0); glVertex3f( 1.0f, 1.0f, 1.0f);
glTexCoord2f(0.0f, 1.0f); glVertex3f(-1.0f, 1.0f, 1.0f);
这样的话 他又是怎么样映射的??