Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
Click here to check if anything new just came in.
July 05 2010
Advanced Texturing DMS 423 - Class 17
Transformations - translation, rotation, and scaling - can be applied to texture coordinates, similar to how they are applied to geometry.The exact same OpenGL function calls are used. The only difference is that the matrix mode is changed to GL_TEXTURE.
glMatrixMode(GL_TEXTURE)
glTranslatef(0.1, 0.05, 0)
glRotatef(30.0, 0, 0, 1)
glMatrixMode(GL_MODELVIEW)
Setting the matrix mode to GL_TEXTURE means that any subsequent transformation calls will be applied to texture coordinates, rather than vertex coordinates.
