Corrected light matrix calculations to work correctly for all directions.
- fixed #11