Made some small enhancements to shadows.

Closes #1096.