Calibrating the dynamic lighting