Real glass absorbs through some of the light and casts a shadow, usually games don't simulate that phenomenon but that's silly.
We approximate diffraction with the BRDF, refraction index and other material properties of the glass, giving it a pretty convincing effect.