Fix for shadow map rendering.