Hi I am not very good with writing shaders. How would I make a shader that simply supports 2 texture coordinates so I can load up 2 different textures to be used at the same time but on different parts of my world? Right now I have 1 texturecoord variable setup and I load a texture through it using GraphicsDevice->SetTexture(0, &Texture); and making sure my VertexDeclaration and FVF both support that, but how can I add a second texture to this? Would I make it so that I make separate coordinates and link the coordinates to a texture? How would I write that?
GraphicsDevice->SetTexture(0, &Texture); GraphicsDevice->SetTexture(1, &SecondTexture);
sampler Texture0 : register(s0); sampler Texture1 : register(s1);
Use the vertices's other coordinates to sample Texture1.