Skip to main content
GameDev.net gamedev.net
🔒 Locked

tiling the texture, how?

Started by yuppies Sep 19, 2005 at 5:29 AM 1 replies 600+ views
Original Post
yuppies
yuppies
how to specify the tiling the texture in a polygon or a quad? somebody said to use D3DTADDRESS_WRAP but how do i specify the texture coordinates?
Metus
Metus
to tile it 4 times (2 times vertically and 2 times horizontally), simply set the texcoords from 0, 0 to 2.0, 2.0

edit:
ouch - corrected

[Edited by - Metus on September 19, 2005 7:43:06 AM]
Ethereal
Muhammad Haggag
Muhammad Haggag
Quote:
Original post by Metus
to tile it 4 times (2 times vertically and 2 times horizontally), simply set the texcoords from 0, 0 to 0.5, 0.5

0,0 to 2,2. That is:
(0,0)        (2,0)+------------+|            ||            ||            ||            |+------------+(0,2)        (2,2)

Topic Locked

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

Sign in to reply to this topic.