|
-
Jun 24th, 2002, 07:14 PM
#11
Originally posted by Yhoko
Hi Zaei! You always agree to my posts, is that good?
Usually, when its DX related =).
In DX8, you can specify a U or V value that is anywhere from 0.0f..maxTextureRepeat (this is a card CAPS value, so youll have to query the card for it). You could also probably specify a negative value, though I have never tried it. When you give a U or V value greater then one, it simply wraps the texture. For instance:
Code:
1---------------2
| |
| |
| |
| |
3---------------4
1: U=0.0f V=0.0f;
2: U=10.0f V=0.0f;
3: U=0.0f V=10.0f;
4: U=10.0f V=10.0f;
You should then have your texture repeated 100 times over the quad.
Z.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|