How auto-darkening lenses work

Here we're talking about motorcycle lenses in particular.