Which environmental factor most directly affects the rate of photosynthesis by influencing the availability of light energy?