Star formation happens in two types of environment: ultraviolet-bright starbursts (like 30 Doradus and HII galaxies at low redshift and Lyman-break galaxies at high redshift) and infrared-bright dust-enshrouded regions (which may be moderately star-forming like Orion in the Galaxy or extreme like the core of Arp 220). In this work I will estimate how many of the stars in the local Universe formed in each type of environment, using observations of star-forming galaxies at all redshifts at different wavelengths and of the evolution of the field galaxy population.