Fix issue with redistribution when shadow is present

Fixes #432
Merge pull request #433 from arv/reprojection-scaffold-demo

Fix issue with redistribution when shadow is present