Just as your phone and your car have gotten smarter, so too can your sunglasses.  The advances of technology in batteries, liquid crystal displays, manufacturing, and microelectronics have been combined to make sunglasses that know where the glare is, and actively fight it.