Skip to main content
gamedev.net
🔒 Locked

Repeating texture

Started by starfleetrp Sep 28, 2006 at 4:00 PM 0 replies 800+ views
Original Post
starfleetrp
starfleetrp
Hi, I am wondering if there is a better way to make a repeating background. The most common example that I can think of would be water. The way I am doing it is

for(number of tiles in X direction)
  for(number of tiles in y direction)
    renderImage
Is there a better way than having to do this 100 times in each direction so that 10 000 times?
GamerYZ
GamerYZ
You can change the UV value. For example a quad, starting at top left going clockwise, with UV value of (0,0), (10,0), (10,10), (10,0) will repeat the texture 10 times for both directions.

Topic Locked

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

Sign in to reply to this topic.