On passing through a glass prism, a ray of light undergoes two refractions. At one rectangular surface of prism, light suffers refraction in going from rarer to denser medium and on other rectangular surface, light undergoes refraction from denser medium to rarer medium.