
A blacklight puts out mostly ultraviolet light or light near the violet end of what we can see. Some materials absorb that energy and give some of it back as visible light. That change is called fluorescence. The light you see on a shirt is coming from the material the lamp is shining on.
Why does one white shirt glow more than another?
Detergents and fabrics can contain brighteners that absorb ultraviolet light and give off blue light. That can make white fabric look a little brighter in daylight. Under a blacklight, the extra blue is much easier to notice.
Does it keep glowing after the lamp goes off?
Ordinary fluorescence fades almost immediately when the source goes away. Some glow-in-the-dark materials give back energy more slowly, so you can still see them after you turn off the light.
For more on how electrical equipment makes light, see Basics of Electric Utilities 101.