Evolution of the eye
The earliest light sensors were eyespots. They are photoreceptor proteins found in protists. Eyespots can only distinguish light from dark. This is enough for the daily synchronization of circadian rhythms. They cannot distinguish shapes, nor decide from which direction the light is coming.