Optogenetics, a field that started with an algae gene, is shedding light on new treatments for eye and neuropsychiatric conditions.