Slightly optimize lighting calculations
Implement gamma correction