A general law for direct sunlight penetration