Texturing a rectangle with a picture properly??

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

How do you specify your texture coordinates ?
Be sure to stay within [0,1] to avoid repetitions.