Obviously no-one was interested, so I tried it myself. However, I don't know anything about shader programming, and this was a stab in the dark.

Effectively, I have got the lightmap to show, but it is too strong. How do can I adjust this to dim the lighting down?:

Code:

material lightmap
{

effect
"
texture entSkin1; // model texture
texture entSkin2; // light texture


technique test
{
pass p0
{
Texture[0] = <entSkin1>; // block
Texture[1] = <entSkin2>; // shadow


TexCoordIndex[0] = 1; //
TexCoordIndex[1] = 1; //

pixelshader = asm
{
ps.1.0
tex t0
tex t1
add r0, t0, t1
};

}
}
";
}



I thought it might work with multiplication, but I couldn't get it to do anything.

Last edited by A.Russell; 08/09/06 09:38.