Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

David20321

Texture repeating

This topic is 6536 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!