The factor of 1/4 in the above formula comes from the fact that only a single hemisphere is lit at any moment in time (creates a factor of 1/2), and from integrating over angles of incident sunlight on the lit hemisphere (creating another factor of 1/2).