Given this summarized version of the Legend of the Christmas Spider, what turned the spider webs into precious metals?

The first rays of sunlight, after touching the webs, turned them into gold and silver.