This solution is for bake deferred lights in a texture ( No Dynamic Light in texture )... I'm not a programmer but only a 3d artist with some ideas for the result on a texture...

Accept advice


-----------------------------------------
Intel Core i7 950 4.2 GHz OC
ASUS P6T DELUXE V2
Corsair H50 Liquid Cooling System
6 GB RAM DDR3 Triple Channel 1600 Mhz Corsair XMS3
Gainward GeForce GTX 480 1.5 GB GDDR5
HD Barracuda 1 TB 7200 RPM 64 MB Cache