Fixed gamma correction.

Also corrected light direction to specify in what space it is acting.