I think the uncanny valley thing is because the superimposition does not take into account the lighting conditions of the room.
I am a not a photography person so this a genuine question asked from ignorance
Using the ARKit libraries, it gets handled automatically for the most part. I think there's a lot of computer vision/image processing algorithms running in the background that potentially pick up on shadows/reflections in real world objects, which help it determine the white balance/color temperature of the room. I'm no expert on it myself though and not 100% sure on the science behind it