BumpSpecRim

Author: [ToreTank], with some assistance and art from Seth Burnette.



Description
This is a bumped/specular shader with an artificial rim light pass that is affected by the normal map. It is ideal for situations where you may want to show off normal maps even in poor lighting conditions. Several modern video games use shaders similar to this (see Bioshock and the racing game Pure for examples).



Usage
You will need the usual bumped/specular textures plus a ramp texture to define how "deep" the rim light illuminates the object. The rim light color can be selected from the picker labeled Rimlight Color.


 * Main texture is for color and specular highlights.


 * Normal map for bump mapping.


 * Ramp texture (set to Clamp, not Repeat) for the rim light falloff.