Repeating Portion of Texture within a Quad

So typically if you have a normalized texture and you want to repeat it over a single quad, you would set the coordinates to be,

//Desired view
[0.0, 0.0], [1.0, 0.0], 
[0.0, 1.0], [1.0, 1.0],

//This would repeat five times
[0.0, 0.0], [5.0, 0.0], 
[0.0, 1.0], [5.0, 1.0],

However if I wanted to take the sample of a texture (this would because I have multiple different images/sprites in the same texture sample as to save space), such as

[0.32, 0.16], [0.64,  0.16], 
[0.32, 0.8], [0.64, 0.8],

would there be a way to set pass this through the shader so that only this section repeats and that no outside area is rendered?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.