Hello,
I have 6 Skins on my terrain and I'm using the terrain shader from 3dgs (terraintex.fx).
I want that the shader uses just the first 5 Skins of the model.
The sixth skin should not rendered tiled.
Can anyone tell me how to do it? I can't programming shaders.
here some code from terraintex.fx:
technique terraintex
{
pass multi_repeat11
{
ZWriteEnable = True;
AlphaBlendEnable = True;
SrcBlend = SrcAlpha;
DestBlend = InvSrcAlpha;
Texture[0] = <entSkin1>;
TexCoordIndex[0] = 0;
AlphaOp[0] = SelectArg1;
AlphaArg1[0] = Texture;
Texture[1] = <entSkin1>;
TexCoordIndex[1] = 1;
ColorArg1[1] = Texture;
ColorArg2[1]= Diffuse;
ColorOp[1] = Modulate2x;
AlphaArg1[1] = Current;
AlphaOp[1] = SelectArg1;
ColorOp[2] = Disable;
AlphaOp[2] = Disable;
}
}