Sign in to follow this  
johnnyBravo

quick Texture tiling on a surface question

Recommended Posts

johnnyBravo    100
Hi, with d3d9, i want to tile a texture onto a surface. So far I've multiplied the texture coords by the number of times i want the texture tiled, but i can't remember what im supposed to set the render states to. Anyone know? thx

Share this post


Link to post
Share on other sites
ET3D    810
The default sampler state is WRAP, which is what you need.

You can set it with SetSamplerState(D3DSAMP_ADDRESSU, D3DTADDRESS_WRAP) and similarly for V.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this