Here's _one_ way to modify the code to put light constants in:

Code:

// preset this with light positions (xyz) and ranges (w)
const float4 vecLightPos[8]= {
-327,650,470,400,
-893,607,400,400,
62,703,417,800,
0,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0};

// preset this with light colors
const float4 vecLightColor[8]= {
1,0,0,1, //Red
0,1,0,1, //Green
0,0,1,1, //Blue
0,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0};