hey this is nifty code!
one question..
how would you set it to get light vecs from static and dyamic lights.. if you have multiple lights would you have it always use the vec from the closest light?
anyway great code.. i was working with diffuse+spec lighting but having major trouble.. this is a step in the right direction ..


Sphere Engine--the premier A6 graphics plugin.