Revert "Made the shading happen in the fragement shader"

This reverts commit 161b6f85a4c13fed423234419341ccf2db7f9731.