The Science Behind Smart Glass