Total internal reflection in glass occurs when light travels from a denser medium to a less dense medium at an angle greater than the critical angle. This phenomenon is determined by the refractive indices of the two media involved. Maxwell's equations explain that specific conditions allow light to be completely reflected rather than refracted. Additionally, at Brewster's angle, one polarization of light is entirely refracted while the other is reflected, which is why polarizing sunglasses are effective for reducing glare. Understanding these principles is essential for applications in optics and photonics.