Skip to main content
gamedev.net
🔒 Locked

Texture repeating

Started by David20321 1 reply 400+ views
Original Post
David20321
David20321
I know somebody asked this before, but how do you make textures repeat, or tile, onto things? e.g if i have a texture made up of a 2*2 square of black&white tile, how can i make it repeat all over a big cube without the tile getting stretched out of shape? With, say, 16 tiles per side?
SeanHowe
SeanHowe
Some older cards don''t support this, but, if you make a texture coordinate bigger than 1.0, it''ll go back to the start of the texture and start going through it again. So, a texture coordinate of 0.0 on one vertex and 4.0 on another would tile it 4 times.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.