Featured contribution

Top  Previous  Next

Specular and diffuse normal mapping from the sun

 

This month I have picked up one of Matt_Aufderheide's shaders and I have created a demo that showcases it in its full splendor. You will need a PS 2.0 video card or better to run this shader.

 

aum54_intro

 

The model must have 2 skins:

- one that contains the color map (your regular skin) and the specular map as an alpha channel;

- another skin that contains the normal map.

Examine my sphere model to see how I have set it up.

 

Here's how you can use this shader in your game:

1) Copy the content of the \specnormalsun folder inside your game folder;

2) Include specular.wdl file in your main script file;

3) Place the sphere model in your level and attach it the action named "spec_model". That's all!