Preparing shadow mapping.