"In the beginning God created the heaven and the earth. And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters. And God said, Let there be light: and there was light. And God saw the light, that it was good: and God divided the light from the darkness. And God called the light Day, and the darkness he called Night. And the evening and the morning were the first day."
This would be reflected light as happens with the moon, the fact the sun appeared visible on the forth day indicates a "day" was an indefinite period.
After the first day in this order came the land masses separating the earth from the sea, then plant life including self-fertilising fruit trees, then the insects that fed off the plants and fruit.
Then out of the waters came every moving creature that had life, and fowl that flew above the earth. These would feed off the insects that fed off the grasses and fruit trees, and then penultimately came the carnivorous animals and last but not least humankind.
.