Improve color computations in fragment shaders.

Change-Id: I7c787787a6a862100fbaf7420b0602e3e966787f
Merge topic 'improve-color-shading' into master

8b27e41e Improve color computations in fragment shaders.