Different individuals can have different triggers for migraines. These triggers include bright lights. Some migraine suffers also have an 'aura' (a focal symptom before the headache) which comprises visual distortions. So visual issues can be both due to as well as lead to migraines.
Question