Text this: Thermodynamics of deformation under irradiation