我如何平铺这个?或者把它变大,让草的纹理出现在整个屏幕上,就像覆盖整个地板一样?
这里的代码和结果:
(图)http://tinypic.com/r/dyvc7t/6
glBegin(GL_QUADS);
glNormal3f(0.0f, 0.0f, 1.0f);
glTexCoord2f(0.0,0.0);
glVertex3f(-140.0, 0.0,100.0);
glTexCoord3f(1.0,0.0,0.0);
glVertex3f(140.0, 0.0,100.0);
glTexCoord2f(1.0,1.0);
glVertex3f(140.0, 140.0,100.0);
glTexCoord2f(0.0,1.0);
glVertex3f(-140.0, 140.0,100.0);
glEnd();
glDisable( GL_TEXTURE_2D );