I don't have any real evidence, but anecdotally I suspect that diet also has an effect on vision. Could be just a coincidence, but my vision declined as a child during a period when I was regularly stuffing myself with sweets, and know others with similar experience.