The effect produced when certain substances are exposed to light. In cancer treatment, some drugs become active when exposed to light and are then able to kill tumor cells.