When light travels through different materials, its direction of propagation is deflected due to changes in the densities of the mediums. As a result, when it finally reaches our eyes after bouncing off of anything, the item appears.