Fixed integer truncation for light values

- emitter and sun light intensity values were incorrectly truncated
- fixes #121