Finally fixed dynamic environmental map calculations