Quick question for you guys - say I've got a vertex program that's relativly complex and I want to compute values for up to eight lights that may be contribute to vertex lighting. I don't want to duplicate the same code eight times in the vertex program (and if fact that would run up on the instruction limit anyway for a typical 1.0 shader) - and of course we don't have branching or the equivilant of for loops or anything, so what do I do? How do you guys handle multiple enabled lights for a single vertex program?



