First a screenshot:
On the screen you see a terrain with two textures. The first texture is the gras texture. The second one is the mud texture which has a alpha channel.
I have combined the two textures you can see on the screenshot.
Now the problem is: if you look at the screenshot you can see that the first textur has gouraud shading. But the second texture with the alpha channel which is blended over the first texture has no gouraud shading.
How can I apply the shading to the alpha channeled texture?
Here's the code:
Code:
texture mtlSkin1;
texture mtlSkin2;
technique terrain
{
pass p0
{
Texture[0] = <mtlSkin1>;
COLOROP[0] = Modulate;
Texture[1] = <mtlSkin2>;
COLOROP[1] = BlendTextureAlpha;
ZENABLE = true;
FILLMODE = solid;
SHADEMODE = gouraud;
ZWRITEENABLE = true;
CULLMODE = ccw;
CLIPPING = true;
LIGHTING = true;
}
}