Calculate shadow using shadow mapping.