Posted By: Freddy_dup1
Dot3 Mapping on level-blocks - 10/28/06 11:05
Hello,
I read the tutorials about shader and tried to change it
so I can use it to make dot3 Mapping on level-blocks.
I just can't make it work...
The engine says: unexpected token "~"
Code:
Can someone please help me?
I read the tutorials about shader and tried to change it
so I can use it to make dot3 Mapping on level-blocks.
I just can't make it work...
The engine says: unexpected token "~"
Code:
bmap dot_3map = <dot_3.bmp>;
material dot_3
{
skin3 = dot_3map;
effect
" texture entSkin1; // block texture
texture entSkin2; // shadow texture
texture mtlSkin3; // the bump map
technique bump_dot3
{
pass P0
{
Texture~[0] = <entSkin1>;
Texture~[1] = <entSkin2>;
~TextureFactor = <mtlSkill3>;
ColorArg1~[0] = Texture; // stage 0 = bumpmap
ColorOp~[0] = DotProduct3;
ColorArg2~[0] = TFactor;
ColorArg1~[1] = Texture; // stage 1 - skin texture
ColorOp~[1] = ~AddSigned;
ColorArg2~[1] = Current;
ColorArg1~[2] = Diffuse; // stage 2 - lighting
ColorOp~[2] = Modulate2x;
ColorArg2~[2] = Current;
}
}
";
}
Can someone please help me?