ich habe mein script jetzt so:
Code:
texture mtlSkin2;
texture entSkin0;
texture entSkin1;
texture entSkin2;
texture entSkin3;
dword mtlSkill1; // der Lichtvektor
technique dot3map
{
pass p0
{
/*
zWriteEnable=true; // enables writing to the z-buffer
AlphaBlendEnable=false; // disables alpha blending
Lighting = True;
DitherEnable = True;
Clipping = true;
*/
Texture[0] = <mtlSkin2>;
Texture[1] = <entSkin1>;
Texture[2] = <entSkin2>;
TextureFactor = <mtlSkill1>;
TexCoordIndex[0] = 1;
TexCoordIndex[1] = 1;
TexCoordIndex[2] = 0;
// stage 0 = bumpmap
COLOROP[0] = DotProduct3;
COLORARG1[0] = Texture;
COLORARG2[0] = TFactor;
// stage 1 - skin texture
COLOROP[1] = AddSigned;
COLORARG1[1] = Texture;
COLORARG2[1] = Current;
// stage 2 - staic-lighting(perfect)
COLOROP[2] = Modulate2x;
COLORARG1[2] = Texture;
COLORARG2[2] = Current;
// stage 2 - dyn-lighting(poor)
//COLOROP[2] = Modulate2x;
//COLORARG1[2] = Diffuse;
//COLORARG2[2] = Current;
}
}
problem ist jetzt, das ich nur eins von beiden stages (2) verwenden kann, wenn ich sie miteinander kombiniere (stage 2 und stage 3), dann sieht das dynamische licht komisch aus und das statische etwas dunkeler