I have a terrain that I created in 3Ds Max, I'm able to add UVW map to result tiled texture, and it works perfectly.
Now, I'm looking to use more than one texture in the terrain (for example: grass and stone) instead of one texture, I use the following code:
device->SetTexture(0, &grassTexture);
device->SetTexture(1, &stoneTexture);
device->SetTexture(2, &blendingMap);
// Code to draw the terrain here...
If I created a blending map image, how do I apply the blending map to the terrain?