Added support for point and dir lights.