I thought the research only showed a correlation with being outdoors, not the light brightness? That said, I spent plenty time outdoors as a kid and became myopic before I got my first computer (let alone sunglasses).
Discussion
Clearly other factors involved but bright sunshine exposure in youth seems to confer benefits.