In this case, the glass is denser than air, so when the ray of white light hits the prism, the ray of light bends.
The answer is refraction :)
5.2m questions
6.7m answers