Moved lighting routines to a separate shader.