Minor fixes for ShadowMapping