A Model of Illumination Direction Recovery Applied to Dynamic Three-Dimensional Scenes