adds change in opacity to exploding stars