Fixed bug in shadow ray generation code.

It was still using the local-space intersection point in some places,
and was using an incorrectly flipped normal.