Original Post
Hello. I want to texture my terrain with multible textures and with their corresponding grayscale maps. I mean, for Example, the 1st texture is dirt and I multiply it with the corresponding grayscale. For the next stage the same and so on. That you can imagine this a bit better, I made this:
In DX, I use this: This is the dirt texture. But how can I save the result from this operation? Or how can proceed working with the result of this stages op? I want to add the reslut from the first texture op with the result from the next texture op. And so on. How can I do this? Thanks Alex
In DX, I use this:
pDev->SetTexture(0, m_tile.m_img[0]);
pDev->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE);
pDev->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG1);
pDev->SetTexture(1, m_tile.m_imgMask[0]);
pDev->SetTextureStageState(1, D3DTSS_TEXCOORDINDEX, 0);
pDev->SetTextureStageState(1, D3DTSS_COLORARG1, D3DTA_TEXTURE);
pDev->SetTextureStageState(1, D3DTSS_COLORARG2, D3DTA_CURRENT);
pDev->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_MODULATE);




