Updated the shadow offset calculation. Fix #194.
Merge pull request #197 from ChrisGrant/master

Updated the shadow offset calculation. Fix #194.