Specular and bump script/material?

Chris

12-10-2006 14:28:11

Could someone show me a material file that basically works so that you have specular and bump maps as separate texture files? I tried making one in oFusion but failed, and was reminded of this by a question from another artist.

I've done the tutorials regarding normal mappings, but I really need some basic example of material file or material script that has diffuse, specularity and bump as separate texture files.

If no one can supply a script here, maybe direct me to the right direction?

Thanks

Lioric

12-10-2006 17:48:38

You can use the same shaders of the Tutorial5 ("Using Render Monkey Shaders"), but add a new texture unit with the specular data of your model

In the fragment shader sample this texture and use it for the "Ks" parameter (or the specularPower parameter), this results in using a specular map and not a single value for the entire object