D3D Hardware Lighting
Based on the previous D3D Frame work demo, I write a simple program that using D3D hardware lighting. HW lighting means just use some D3D lighting API to create the lighting effect instead lighting in vertex shader or pixel. This technology is still very useful on some platforms that do not support shader technology, like WII. Most of time, the lighting is a very time wasting process. The frame rate will drop a lot if there are too many lights in the game world. So a better way to do that is pre-calculating all lights information into some textures. At the game running time only do some texture blending operations. There number of HW lights will have some limitation, may be 4 or 8 in maximum. The full source code could be download from here.