更新时间:2023-11-08 11:52:46
您需要在此处设置纹理坐标(如果我记得正确的话,请使用gl.TexCoords).
You need to set the texture coordinates (using gl.TexCoords if I remember right) at the same time as you set the vertex normal and location.
gl.NewList(GLListTag, gl.COMPILE);
{
gl.Begin(gl.TRIANGLE_STRIP);
for (int i = 0; i< PointsCount; i++)
{
gl.TexCoord2f(u, v); // Texture coordinate of the vertex.
gl.Normal3d(x,y,z)
gl.Vertex3d(a,b,c)
}
gl.End();
}
gl.EndList();
http://nehe.gamedev.net/tutorial/display_lists/15003/ [
http://nehe.gamedev.net/tutorial/display_lists/15003/[^]