Hey there,
I have not much experience with shaders so I hope that someone can help me.
I added the specular bump mapping shader to our character models.
The models have a specular map in the alpha channel of skin1 and a normal map as skin2.
I set the material like this:
MATERIAL* mtl_specBump =
{
effect = "specBump.fx";
specular_blue = 200; // bright specular component
specular_green = 200;
specular_red = 200;
ambient_blue = 255;
ambient_green = 255;
ambient_red = 255;
diffuse_blue = 255;
diffuse_green = 255;
diffuse_red = 255;
power = 10;
flags = PASS_SOLID;
}
The problem is that the character is displayed too dark since the shader is applied. I thought that I could solve the problem by setting ambient_xxx to a high value, but that doesn't seem to have an effekt at all.
Note: In our levels we don't use any static lights and no sun light, only dynamic lights.
Can someone give me a hint what to do so that the character models with spec bump are displayed as bright as without the shader?
Thanks in advance for your help.
Regards,
Pegamode.