Repeating a portion of a texture
Hey I know that to repeat a texture in OpenGL you can do something like this
glTexCoord2f(0, 0);
.....
glTexCoord2f(4, 4);
and that will repeat the whole texture 4 times vertically and horizontally but I want to repeat a portion of the texture a certain number of times vertically and horizontally for example i want to display the portion of the texture thats
(.25, .25) to (.5, .5) 4 times across and 3 times down, How can I do this?
Can't do it in openGL.
Go into Photoshop and cut/paste that portion you want into a new texture map.
Go into Photoshop and cut/paste that portion you want into a new texture map.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement