LogoBEN CLOWARD - Technical Artist
Normal Map
Normal Map

Per-Pixel Lighting
Per-Pixel Lighting

Diffuse Texture
Diffuse Texture

Complete Shader
Complete Shader

  SIMPLE NORMAL MAP SHADER

SPECS:
HARDWARE:
DirectX 8 or higher
TEXTURES:
- Diffuse Texture
- Normal Map Texture
INPUTS:
- Ambient Color
- Light Color
- Light Position
PASSES:
One

DOWNLOAD: (right click and choose "save target as...")

Simple Normal Map Shader  Simple Normal Map Shader


COMMENTS:

  • This shader uses a normal map for per-pixel lighting - to give the illusion that the model surface contains more detail than is really there. For more information on normal maps and per-pixel lighting, read my tutorial here.

  • While many of the shaders in my library require DirectX 9 hardware (Nvidia GeForceFX or ATi Radeon 9700 or greater) this one is written to be very simple so that it can run on lower end graphics cards such as the GeForce3 and Radeon 8500.

  • 3DS Max already ships with a simple normal map shader - so why did I make another one? I believe this one is better since it uses a point light instead of a directional light. It allows you to adjust the color of the light and also choose an ambient color. Finally, my version only requires DirectX 8.


    INSTRUCTIONS:

    For instruction on how to apply this shader to your model in 3DS Max, read my tutorial - HLSL Shaders in 3DS Max.

    For instruction on how to create normal maps for this shader, read my tutorial - Creating and Using Normal Maps.

    If you'd like to use some of my textures with this shader instead of making your own, you can find them here.

    ADDITIONAL:

    If you have trouble getting this shader to work correctly in 3DS Max, send me an email. I'll see If I can help. Also, I'm an artist - not a programmer. If you are a programmer or know more about shaders than I do and you find something in this shader that is poorly written, broken, etc, I'd love to hear from you. I've mostly taught myself how these things work so if you have some pointers for me that would be great!!


    Return to the list of Shaders

  • HOME BLOG PORTFOLIO RESUME RESOURCES CONTACT
     

    Free Content Sponsors: