Fix shadow map perspective generation.