Just add this to your shader and you have support for 8 lights

Code:
OutColor = 0;
for (int i=0; i<8; i++)  // Add 8 dynamic lights
	OutColor += DoLight(PosWorld,OutWorldNormal.xyz,i);




Shade-C EVO Lite-C Shader Framework