Hi! I've been trying to render 2 textures on a squad (actually to take the alpha value of the first texture and to apply it to the second one). (this is what i want to do:
http://www.gamedev.net/reference/articles/article2238.asp).
Instead of showing the second texture details, it shows the dominant color of the texture (the alpha blend works fine, it's just that the colors are wrong)
heres my lines of code that i'm using:
| motorGrafic.TextureState[0].AlphaOperation = TextureOperation.SelectArg1; |
| motorGrafic.TextureState[0].AlphaArgument1 = TextureArgument.TextureColor; |
| motorGrafic.TextureState[1].ColorOperation = TextureOperation.SelectArg1; |
| motorGrafic.TextureState[1].AlphaOperation = TextureOperation.SelectArg1; |
| motorGrafic.TextureState[1].ColorArgument1 = TextureArgument.TextureColor; |
| motorGrafic.TextureState[1].AlphaArgument1 = TextureArgument.Current; |
| |
| motorGrafic.SetTexture(0, mudTex); |
| motorGrafic.SetTexture(1, tigerTex); |
I don't know what's wrong... i have the latest version of DirectX SDK......any help pls...