Clamp Texture Address Mode
-
Microsoft DirectX 9.0 / C++ Question about Setting Sampler State / Clamp Texture Address Mode. How can I get a SetSamplerState to effect a specific custom vertex and not the whole entire scene? For instance, I created a scene with 3D objects and stuff completely surrounded by a Skybox cube. I'm trying to get the following code to effect my skybox cube face textures only, and not the rest of the scene. :confused: // Clamp Texture Address Mode. g_pD3DDevice->SetSamplerState( 0, D3DSAMP_ADDRESSU, D3DTADDRESS_CLAMP ); g_pD3DDevice->SetSamplerState( 0, D3DSAMP_ADDRESSV, D3DTADDRESS_CLAMP ); The code works great as far as getting rid of those noticeable seams in the skybox, but it also messes up the rest of the stuff. Any help would be greatly appreciated.. Thanks! :thumbsup: