Here you go Nems:
Code:

material detailmap_mtl
{
effect=
"
texture entSkin1;
texture entSkin2;

technique t0
{
pass p0
{
Texture[0] = <entSkin1>;
Texture[1] = <entSkin2>;

colorarg1[0] = Texture; // color map
colorop[0] = selectarg1;
texcoordindex[0] = 0;

colorarg1[1] = Texture; // detail map
colorarg2[1] = current; // color map
colorop[1] = addsigned; // add detail map to color map
texcoordindex[1] = 0;
texturetransformflags[1] = count2;
texturetransform[1] = { 8.0,0.0,0.0,0.0, // detail map u scale
0.0,8.0,0.0,0.0, // detail map v scale
0.0,0.0,0.0,0.0,
0.0,0.0,0.0,0.0};
magfilter[1]=linear;
minfilter[1]=linear;
mipfilter[1]=linear;

colorarg1[2] = Diffuse; // (shadow map + vertex lighting)
colorarg2[2] = current; // (color map + detail map)
colorop[2] = modulate; // modulate (color map + detail map) with (shadow map + vertex lighting)
magfilter[2] = linear;
minfilter[2] = linear;
mipfilter[2] = linear;
}
}
";
}



The first skin is the texture and the second the detailmap.
Since I`ve got some time today, I plan to make it easier to insert and to add it to the wiki...

Slin

Last edited by Slin; 10/17/07 22:37.