View Full Version : Texturing a rectangle with a picture properly??

05-04-2009, 02:05 PM
Hey guys,

I need a way of texturing an interior of a rectangular box with stars (I want to make it look like space). I'm trying to texture it with a picture of stars but it gets repeated many times instead of stretching itself properly along the rectangle on every corner. How do I fix this? Do you have any nifty ideas on how to do this space thing? Thanks

05-04-2009, 02:34 PM
How do you specify your texture coordinates ?
Be sure to stay within [0,1] to avoid repetitions.