A ray diagram showing refraction at the boundary between air and glass Refraction can cause optical illusions as the light waves appear to come from a different position to their actual source.