Modern depth cameras are equipped with infrared sensors and advanced algorithms that allow them to function effectively in various lighting conditions, from bright sunlight to complete darkness.