hi,
well I tried to get this shader to work but I get one error.:
First of all; i get no Bumpmap or normalmap in my level, it goes not work
Error in effect:
Floor1(70) : Syntax error
put the engine get started!!
here is my code:
____________________
bmap detail_floor1, <16tile12.tga>;
function init_textureNormals()
{
bmap_to_normals(mtl.skin1,2);
}
material Floor1
{
event=init_textureNormals;
skin1=detail_floor1;
effect=
"
matrix matWorldViewProj;
matrix matWorld;
texture mtlSkin1;
texture entSkin1;
texture entSkin2;
vector vecLight;
technique dot3map
{
pass p0
{
Texture[0] = <mtlSkin1>;//1te Skin im Model ist die Textur
Texture[1] = <entSkin2>;//1te Skin im Model ist die Textur
Texture[2] = <entSkin1>;//1te Skin im Model ist die Textur
TextureFactor = 0xFFFFFFFF;
COLOROP[0] = DotProduct3;
COLORARG1[0] = Texture;
COLORARG2[0] = TFactor;
TexCoordIndex[0] = 1;
COLOROP[1] = Modulate;
COLORARG1[1] = Texture;
COLORARG2[1] = Current;
TexCoordIndex[1] = 0;
magFilter[2]=Linear;
minFilter[2]=Linear;
mipFilter[2]=Linear;
COLOROP[2] = AddSigned;
COLORARG1[2] = Texture;
COLORARG2[2] = Current;
TexCoordIndex[2] = 1;
};
}
";
}
____________________
Info: The 16tile12.tga is my Bumpmap !!!
what else shoud i have to do
hope you can help me