Now it works, FF effects are case-sensitive
forgott it
Code:
material mtl_lightmap
{
effect=
"
texture entSkin1;
texture entSkin2;
technique lightmap_mapping
{
pass p0
{
texture[0]=<entSkin1>; //Try texture[2] if it donīt do itīs job
texture[1]=<entSkin2>; //Try texture[3]
colorArg1[0]=Texture;
colorArg2[0]=Diffuse;
colorop[0]=add; // add vertex lighting to shadow map
colorArg1[1]=Texture;
colorArg2[1]=Current; // (shadow map + vertex lighting)
colorop[1]=Modulate2x; // modulate color map with (shadow map + vertex lighting) (Test Modulate4x / Modulate2x / Modulate)
resultarg[1]=Temp; // output to temp register
colorArg1[2]=Texture;
colorOp[2]=selectArg1;
magfilter[2]=linear;
minfilter[2]=linear;
mipfilter[2]=linear;
texcoordindex[2]=1;
colorarg1[3]=Current; // unshaded color map
colorarg2[3]=Temp; // shaded color map
colorArg0[3]=Texture; // luminosity map
colorop[3]=Lerp; // interpolate between shaded color map and unshaded color map depending on luminosity map
magfilter[3]=Linear;
minfilter[3]=Linear;
mipfilter[3]=Linear;
texcoordindex[3]=1;
}
}
";
}