When a ray of light passes obliquely through a rectangular glass slab, the emergent ray is
A. parallel to the incident ray but laterally displaced
B. perpendicular to the incident ray
C. along the same line as the incident ray
D. bent towards the base of the slab