Fix some bugs in soft shadow mapping.