Made a better shading algorithm.