I dont think using light code such as that is a good idea.. if the light is behind the camera.. it could still affect the faces that are visible...so you will get lights blinking out and on..better to use a simple range-based approach as in my example.