hi
i want to know what is the differce between 2d and 3d texture coordinate? how can i make 3d texture coordinate? could give me some example?
thank you very much!
hi
i want to know what is the differce between 2d and 3d texture coordinate? how can i make 3d texture coordinate? could give me some example?
thank you very much!
glTexCoord2f(s, t);
glTexCoord3f(s, t, r);
The second example interpolates a 3rd coordinate that will be used to address the third texture axis if you have a 3D texture volume instead of a 2D texture image.
Read up on the following calls:
glEnable(GL_TEXTURE_3D);
glTexImage3D()