factors affecting light and temperature