Answer: The name of the effect is Refraction Of Light.
Explanation:The direction of light changes because light was firstly travelling in air which was comparably a rarer medium or (not denser), but after falling onto the glass surface it enters a denser medium as compared to the previous one i.e. air.