Fixed diffuse and specular lighting

Hopefully the gradient calculation still works as expected.